[Javascript] Select all when a chekcbox is checked

Reuben D Budiardja reubendb at goshen.edu
Sat Apr 28 14:34:19 CDT 2001


Hello,
Suppose I have a multiple selection form, something like this:

<SELECT NAME="assignments" MULTIPLE SIZE="9">
   <OPTION NAME=bla>Bla
   <OPTION NAME=foo>foo
etc..
</SELECT>

<INPUT TYPE = "CHECKBOX" NAME="all> Select All

What  I want to do is when the checkbox is checked, all the selection is 
selected. Could someone help me with this?

Thanks A lot.
Reuben D. Budiardja




Reuben D. Budiardja
Web Database Application Programmer / Analyst
Devcorps, ITS
Goshen College, IN 46526





More information about the Javascript mailing list