How can I, using JQuery, check if a value belongs to dropdown list or not?
Just in case you (or someone else) could be interested in doing it without jQuery:
var exists = false; for(var i = 0, opts = document.getElementById('select-box').options; i < opts.length; ++i) if( opts[i].value === 'bar' ) { exists = true; break; }