I have a form, which is already working and setup to display errors using php, but these errors are not displayed untill the form is submitted. Obviously this helps prevent bad information getting into the database and so on, but for the user can be a waste of time filling out the form only to find out there was errors.
Im looking to add javascipt to simply identify a couple of common errors such as finding any options in a selection form that have no values (on purpose).
<option value=""> Select from list below</option>
There is no option value for this selection so if this is selected as a joke or without them realising a javascipt error box comes up to say you have an error on the form please change it.
Start Free Trial