To determine if an html select box contains a given value as an option, in jQuery you can try to select the option and see if it exists:
if($("#id option[value='someval']").length != 0) { // it exists! }
That’s it! Have fun!
To determine if an html select box contains a given value as an option, in jQuery you can try to select the option and see if it exists:
if($("#id option[value='someval']").length != 0) { // it exists! }
That’s it! Have fun!