How can I check whether a option already exist in select by JQuery?
I want to dynamically add options into select and so I need to check whether the option is alread
if ( $("#your_select_id option[value=]").length == 0 ){ alert("option doesn't exist!"); }