标签:video option text ide 获取 bsp value code span
记录一下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>
标签:video option text ide 获取 bsp value code span
原文地址:http://www.cnblogs.com/0xcafebaby/p/6065939.html