如何获得与jQueryselect选项的标签?
<select> <option value="test">label </option> </select>  该值可以通过$select.val()来获取。 
 那label呢? 
有没有解决scheme,将在IE6中工作?
尝试这个:
 $('select option:selected').text(); 
嗨,先给一个ID为select为
 <select id=theid> <option value="test">label </option> </select> 
那么你可以像这样调用选定的标签:
 jQuery('#theid option:selected').text() 
 作为参考,在选项标签上还有一个辅助label属性: 
 //returns "GET THIS" when option is selected $('#selecter :selected').attr('label'); 
HTML
 <select id="selecter"> <option value="test" label="GET THIS"> Option (also called label)</option> </select> 
要获得一个特定的选项在下拉列表中的标签可以这样 –
 $('.class_of_dropdown > option[value='value_to_be_searched']').html(); 
要么
 $('#id_of_dropdown > option[value='value_to_be_Searched']').html(); 
 $("select#selectbox option:eq(0)").text() 
“选项:eq(0)”中的0索引可以交换为您要检索的索引选项。
这是有帮助的: http : //www.myphpetc.com/2009/03/jquery-select-element-cheat-sheet.html
 <SELECT id="sel" onmouseover="alert(this.options[1].text);" <option value=1>my love</option> <option value=2>for u</option> </SELECT> 
尝试这个:
 $('select option:selected').prop('label'); 
 这将拉出两种样式的<option>元素的显示文本: 
-   <option label="foo"><option>– >"foo"
-   <option>bar<option>– >"bar"
 如果元素中包含label属性和文本,则会使用label属性,这与浏览器的行为相同。 
后代,这是在jQuery 3.1.1下进行testing
 您正在寻找$select.html() 
- jQuery – keydown()在div不工作在Firefox
- 用jQueryselectcheckbox组的值
- 为什么我在Chrome中收到“jquery.mobile-1.3.2.min.map file not found”消息?
- 如何在js中检查用户是否已经选中Google recaptcha中的checkbox?
- JQuery或JavaScript:如何确定在按住锚标签超链接时是否按住Shift键?
- 如何监视DOM的变化?
- 通过jQuery.Ajax下载文件
- HTML5 – localStorage删除并清除所有数据
- 开始/播放embedded式(iframe)youtube-video点击图像