Kishore Kumar Kishore Kumar - 1 year ago 95
jQuery Question

How to get the specific option value of a dropdown by passing the option text in jquery

I am using the below line to get the value of a specific option of a dropdown, it is working in IE, but not working in Chrome.

$("#idDescription option[text='Business']").val();

Answer Source

Please try this:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download