[Solved] Check for value in drop down before submit
This should do what you want. I iterate over the selected options and count how many times each occurs. On the first detection of a duplicate I add an error message. I also make sure an email was selected. If there are any errors we alert them otherwise the form gets submitted. (function ($) { … Read more