How can I, using JQuery, check if a value belongs to dropdown list or not?
if(!$('#select-box').find("option:contains('" + thevalue + "')").length){ //do stuff }