Hello all,
I have created a form in 3 variants, simple name and e-mail. I have also created some javascript validation to ensure name and e-mail are not left empty when the form is submitted. For the first variant, i.e. where the name is first in the HTML source everything works fine, but on the 2nd and 3rd variants the validation keeps kicking in even though I fill in the fields. Presumable it see the first variants name field as empty.
How can I apply validation to forms without having to give each name/email field a unique id and then duplicating the validation code three times?
Bookmarks