<select id="teacher" name="tea-list" form=""> <option value="none">请选择老师</option> <option value="1">老师1</option> </select> //获取select标签中option的value值 var $teacher=$(‘#teacher option:selected‘); $teacher.val()
时间: 2024-10-14 06:03:48
<select id="teacher" name="tea-list" form=""> <option value="none">请选择老师</option> <option value="1">老师1</option> </select> //获取select标签中option的value值 var $teacher=$(‘#teacher option:selected‘); $teacher.val()