[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 b

[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() :

[jQuery] Re: A little problem

2008-08-21 Thread elz64
hi, I'm new to jQ, but I found this with next() statement that get the element very next to the targeted one. $(".btn-slide").click(function(){ $(this).next().slideToggle('slow'); return false; // <-- this is necessary, too, to prevent the link's default action NOT SURE ?? });

[jQuery] Re: A little problem

2008-08-20 Thread Karl Swedberg
Hi BroOf, In order to help, we'll need to know where the .btn-slide is in relation to the .gradient. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 20, 2008, at 7:51 AM, BroOf wrote: Hey guys, i've a little problem with Jquery. I've got a lot of