AW: [Javascript] addin <input fields> via visibility or similar?
Triche Osborne
wdlists at triche-osborne.com
Fri Sep 23 09:37:27 CDT 2005
Michael Borchers wrote:
>
> beautiful, this works so far.
> the name for the inputs will be something like
> products_id[X][products_price]
>
> how can i count how many rows (X) there are already?
If by "rows" you mean extant INPUT tags, use getElementsByTagName, then
loop through and count up the ones that match the stable portion of your
NAME attribute.
Triche
More information about the Javascript
mailing list