[thelist] check all checkboxes, DOM etc

Fernando Gómez fgomez at criba.edu.ar
Thu Sep 19 13:58:01 CDT 2002

From: "Tom Dell'Aringa" <pixelmech at yahoo.com>
Sent: Thursday, September 19, 2002 3:42 PM
Subject: [thelist] check all checkboxes, DOM etc

>   for (i = 0; i < targetform.elements.length; i++)

> Seems it should work, and it does when I first load the page with
> only 1 default row. But once I add rows, it doesn't work. It almost
> seems as if it doesn't see the new rows and checkboxes. Here is a
> typical row (in fact the default row)

A simple and perhaps silly question: are you sure that all the added
checkboxes are appended as children (or at least descendants) of targetform?

Have you tried an alert(targetform.elements.length)  ?

Fernando Gómez

More information about the thelist mailing list