If you use the Validation plugin (here: http://jqueryvalidation.org/) and update your to supply
value
on each , if will prevent form submission if the "empty" value is selected:
It's also worth noting that the only valid child elements of a is either
or
, so remove those
s.
If jQuery is not an option, you could always add an onclick
to the select or an onsubmit
to the form and do a quick check on an empty string (or whatever you set the default value to).
No comments:
Post a Comment