Hi all,
How can i get the value of a specific text in a select box.
example 16 of text OEC using jquery,
I am not getting the value correctly
<select name="categories" id="categories" class="validate">
<option value="0" selected="selected"><--select one--></option>
<option value="57">OBC</option>
<option value="16">OEC</option>
</select>
I had tried For example something like $("#categories option[text='OEC']").val(); but not getting the value. Is there any mistake or is it possible.