From markguy27 at ameritech.net Thu Jan 30 18:07:01 2003 From: markguy27 at ameritech.net (m guckeyson) Date: Thu Jan 30 18:07:01 2003 Subject: [thesite] javascript error turning brain to mush (checkbox toggles) Message-ID: <5.1.0.14.0.20030130185939.009f08d0@mailhost.col.ameritech.net > H'lo folks... I think something very similar to my problem was covered recently, but I'm unable to find the thread now... and I can't just link you to the code, seeing how my DSL provider has apparently cut off my server. Without warning. Or explanation. So, I'm sorry for the possible repetitive question and for what's about to follow as well... Basically, I'm looking to be able to toggle all of a form's checkboxes on and off with button onClick. First the function: function toggleAll( formObj ) { for ( var i = 0 ; i < formObj.length ; i++ ) { fieldObj = formObj.elements[i]; if ( fieldObj.type == 'checkbox' ) { fieldObj.checked = ( fieldObj.checked ) ? false : true ; } } } And then there's a bunch of checkboxes eerily similar to these guys:
...etc... and then the button o' despair:
Could someone point out my glaringly obvious mistake? My brain thanks you... ;) mark From cparker at swatgear.com Thu Jan 30 18:10:00 2003 From: cparker at swatgear.com (Chris W. Parker) Date: Thu Jan 30 18:10:00 2003 Subject: [thesite] javascript error turning brain to mush (checkbox toggles) Message-ID: <001BD19C96E6E64E8750D72C2EA0ECEE14E314@ati-ex-01.ati.local> m guckeyson wrote: > H'lo folks... hey. i think you meant to send this to thelist at lists.evolt.org not thesite at lists.evolt.org? chris. From markguy27 at ameritech.net Thu Jan 30 18:15:01 2003 From: markguy27 at ameritech.net (m guckeyson) Date: Thu Jan 30 18:15:01 2003 Subject: [thesite] javascript error turning brain to mush (checkbox toggles) In-Reply-To: <001BD19C96E6E64E8750D72C2EA0ECEE14E314@ati-ex-01.ati.local > Message-ID: <5.1.0.14.0.20030130191935.009fa830@mailhost.col.ameritech.net > /boggle. Indeed I did. Sorry. And thanks for the heads up ;) At 04:09 PM 1/30/2003 -0800, you wrote: >m guckeyson wrote: > > > H'lo folks... > >hey. > >i think you meant to send this to thelist at lists.evolt.org not >thesite at lists.evolt.org? > > >chris.