If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Form Validation in Table

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

do you know any other scripting code or 'programming' code ie C, C#, C++, PHP, Java? if not you will have to learn javascript before you can write it. If you do know one of the others, many of the statements are the same it is just learning a little new syntax and implementing it correctly. that's basically what i did; i knew some C++ and just used my knowledge of that to learn javascript fairly quickly.

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.