[Javascript] turning on checkboxes

Filipiak, Bob (Contractor) filipiab at atsc.army.mil
Fri Aug 10 10:51:24 CDT 2001


Based on the loop through the db I don't think the checkboxes has the same
name IMHO

Bob Filipiak (Contractor)
MCP 

-----Original Message-----
From: Peter Brunone [mailto:peter at brunone.com]
Sent: Friday, August 10, 2001 11:49 AM
To: javascript at LaTech.edu
Subject: Re: [Javascript] turning on checkboxes


var i = 0;

while(i <= document.members.cb1050.length) {
    document.members.cb1050[i].checked = true;
    i++;
    }

    When you have multiple radio buttons or checkboxes with the same name,
the JS engine treats them as an array of that name containing each checkbox
as an element in that array.

Cheers,

Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010810/9187ed35/attachment.htm>


More information about the Javascript mailing list