jQuery-Selectric
jQuery-Selectric copied to clipboard
How do you select an option value based on a value
I know that you can select an option using the following:
$('#set_value').prop('selectedIndex', 0).selectric('refresh')
However, what happens if you do not know what the index is? How do you select an option based on a given value?
Cheers,
Jay
Also wondering about it
$('#set_value').val('some_value').selectric('refresh');