How can I, using JQuery, check if a value belongs to dropdown list or not?
if ($select.find('option[value=' + val + ']').length) {...}