check if Select option already exists

zoran

New Member
I have \[code\]<select name="saved" class="saved" multiple="multiple"><option value="http://stackoverflow.com/questions/12812662/1">Hello</option><option value="http://stackoverflow.com/questions/12812662/2">Goodbye</option><option value="http://stackoverflow.com/questions/12812662/3">Wave</option></select>\[/code\]how would I have Jquery check if there is already an option with value="http://stackoverflow.com/questions/12812662/2" in "saved" in an if statementI am looking to see if it exists - not if it is selected.I am using this in a function which may operate on more than one select box. the class name of the select box is now stored as a var "theSel" - how can I modify this for that
 
Back
Top