Hello everyone! I'm new to these forms and (very new to) JS. I hope someone can help.
What I am trying to do is have a form in a table validate in the same order as the tab order. The form is in a table with three columns. There are a few fields in each column below each other. They are not in separate cells. (Spacing issues when they are in their own cells.) Validation is working correctly, however when it is validating, it validates column by column, not by "row."
forms are usually validated using a loop which does some tests to the given form elements. usually such loops go through the form elements according to their indexes and no matter what html is used for visual positioning of these elements. making such loop to go through the form elements in another order may slower the script and i doubt this is a very good idea
use [code]YOUR CODE GOES HERE[/code] or burn in Hell
they even have the basis for a form validation there but it is not that great IMO. i found another one using google and slightly modified it to make it work how i wanted to.
and if you are going to be validating forms i imagine you are going to be submitting them to an email address or a data base in which case you should also learn php. PHP can also validate the form for you but it does it server side so it takes longer but is still a solid way to do so.