AW: [Javascript] addin <input fields> via visibility or similar?

Michael Borchers borchers at tridem.de
Fri Sep 23 02:26:10 CDT 2005


>
-----Ursprüngliche Nachricht-----
Von: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]Im Auftrag von Mike Dougherty
Gesendet: Samstag, 10. September 2005 00:49
An: [JavaScript List]
Betreff: Re: [Javascript] addin <input fields> via visibility or
similar?


This should be doable on-the-fly with DOM insertions.  If you had a hidden template, you could 
clone a whole row and insert it in only a few lines of code.  It gets trickier if you want each 
object to have it's own id/name - but at that point, you could probably just write a wrapper 
function to which you pass an index.  google: createElement() - and post again if you need more 
help.
<

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?



More information about the Javascript mailing list