JS获取select的值
记录一下JS获取select的value值和选项值
<select id="video_status"> <option value="1" selected="selected" >subEnt</option> <option value="2" >subOffbeat</option> <option value="3" >subFun</option> </select> <script> var val = $("#video_status option:selected").val(); //获取value值 1 var tex = $("#video_status option:selected").text(); //获取text值 subEnt </script>