Dave, see my last reply... -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 2:09 PM To: CF-Talk Subject: RE: Need a Javascript Wizard...
> I've got a form with 12-24 dynamic checkboxes and varying values. When > a checkbox is checked, its value needs to be passed to a hidden form > field (it will become a comma seperated list). When it is unchecked, > it needs to be removed from the list. > > Any ideas how to do something like this? My JS skills are lacking. :( Rather than tax your JS skills, why not just give your checkboxes the same name? When your form is submitted, CF will give you a single form variable with a comma-delimited list of checked values. Alternatively, you could store your checked values within a JS array, which is easier to work with. When you submit the form, you could then convert it to a list using the join method built into the Array object type. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295044 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

