<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2652.35">
<TITLE>RE: [Javascript] Select  all when a chekcbox is checked</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>When you know the name you use document.formName.selectName..... or you can use the array by referencing the index of the item: document.formName.element[0].... would be the first element on the form. Name are easier if you know them because there is no guarantee what sequence the elements will be loaded into the array especially if the form gets modified and another element is added the element you want may have a new index.</FONT></P>

<P><FONT SIZE=2>As far as php coding goes, try asking on a php list. It is hard to believe that the php DOM doesn't allow named references.</FONT></P>

<P><FONT SIZE=2>Bob Filipiak (Contractor)</FONT>
<BR><FONT SIZE=2>MCP </FONT>
</P>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Reuben D Budiardja [<A HREF="mailto:reubendb@goshen.edu">mailto:reubendb@goshen.edu</A>]</FONT>
<BR><FONT SIZE=2>Sent: Saturday, April 28, 2001 4:46 PM</FONT>
<BR><FONT SIZE=2>To: javascript@LaTech.edu</FONT>
<BR><FONT SIZE=2>Subject: RE: [Javascript] Select all when a chekcbox is checked</FONT>
</P>
<BR>

<P><FONT SIZE=2>Another question:</FONT>
<BR><FONT SIZE=2>Is there any way to address a selection box other by its name? The problme </FONT>
<BR><FONT SIZE=2>is, I'm also using php, and for php the name for &lt;SELECT MULTIPLE&gt; has to </FONT>
<BR><FONT SIZE=2>be something like &quot;name[]&quot; (implying it's an array from select multiple.</FONT>
</P>

<P><FONT SIZE=2>While addresing this name in the javascript function, the square bracket </FONT>
<BR><FONT SIZE=2>causes an error.</FONT>
<BR><FONT SIZE=2>Any help? What is the general rule to address an object other by its name?</FONT>
</P>

<P><FONT SIZE=2>Thanks a lot.</FONT>
<BR><FONT SIZE=2>Reuben D. Budiardja</FONT>
</P>
<BR>
<BR>

</BODY>
</HTML>