I'd use javascript.
First, I'd have the checkboxes dynamically named like box1, box2, box3 and
so on.
Then, make a button, or some kind of image, and do an onclick to call a
javascript. That javascript will perform an array loop to make all those
boxes EQ true or sumthin like that. that way, the boxes are automatically
checked and there's no need to refresh the page.
-----Original Message-----
From: Bosky, Dave [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 09, 2001 2:08 PM
To: CF-Talk
Subject: checking multiple boxes w/single button?
I have a form containing a dynamic list of checkboxes that
are used to delete messages. I already have a button that
will delete all checked mail but my question is how do I
make a button that will automatically put a check in each box?
<!-----
<form name="msglist" action="" method="">
<cfoutput query= "msgs">
<input type="checkbox" name="MsgsToDelete" value="#MessageNumber#">
</cfoutput>
<input type="button" value="CheckMail" onClick="checkAll();">
<form>
---->
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists