I have a combobox (select) and i want to select after a specified value something like that
$("mySelect").select(myValue);
Thanks
If you want to select the <option>
element associated with your value, you can use val():
<select id="mySelect">
<option value="foo">Foo</option>
<option value="bar">Bar</option>
<option value="quux">Quux</option>
</select>
$("#mySelect").val("quux");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With