[jQuery] Re: a little problem with checking all checkboxes

2009-09-27 Thread Karl Swedberg
Hey Mike, It's perfectly fine to set the checked DOM property there, which takes a Boolean. I think something else is wrong with the OP's code. I put together a little demo: http://test.learningjquery.com/checkbox.html Click the parent checkbox, and all the children checkboxes will toggle

[jQuery] Re: a little problem with checking all checkboxes

2009-09-26 Thread Mike Alsup
Please consider the code below, supposed to check all child checkboxes wjen a parent checkbox has been checked. //parentCheckbox and childCheckboxes are two variables set earlier. //Here are typical values they produce once alert() //I reproduce the exact string outputed when alert() :