Can I check for existing items in a html select box while adding them. A user types a text in a input box and then clicks button to add items. But I want to check for identical items before adding. Is there a efficient way to write this script?
Share
Check if
$('#dropdown option[value=' + newoption + ']')returns an option or not.E.g.