Although the name attached to me is newbie, i don't think this is that easy to solve, and probably this is advance stuff.
May be i should explain more further on what i want to do. Did you notice that the name i gave to the input has braces? such as name="title[]". I have a table with following inputs:
title, author, isbn, post date etc...
when i hit an 'add' button, the table is duplicated with same structure, including names and ids. And in order to save to database by php, i have to use name="title[ ]" instead of just name="title" (w/o braces), since there is multiple record sets. When i was doing w/o multiple data sets, i used:
document.forms[' myform '][' title ']
or other ways such as the way you mentioned.
I tried and stuck on that the following ways do not work at all:
document.forms[' myform '][' title[ ] ']
or for (i=0;i<5;i++) { document.forms[' myform '][' title '][ i ] .......... }
simple example is that i have several isbn, all used share name, isbn[], the data pass to php is array of data, i am able to extract it to php, but not able to check every isbn is 10 or 13 digits (according to international book numbering) by javascript.
Get it? Excuse me for this complicated problem. But I am getting crazy on this ........ Please help if possible.