Get Text of Item in Listbox by Value using jQuery
This question already has an answer here:
HTML Code:
<select>
<option value="1">ayush</option>
</select>
jQuery Code:
var a = $('option[value="1"]').html();
console.log(a);
链接地址: http://www.djcxy.com/p/83058.html
上一篇: 在Jquery中获取所选选项的文本值