Hmmm... Well lets simplify things instead. :)
$(".musthave label")
.bind('click', function() {
$(this).toggleClass('musthavechecked');
});
--
Brandon Aaron
On 2/1/07, Will <[EMAIL PROTECTED]> wrote:
> Thank you Brandon. A great idea but it didn't seem to do the trick. :(
>
> Will
>
>
> On 2/1/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
> > On 2/1/07, Brandon Aaron < [EMAIL PROTECTED]> wrote:
> > > Try adding return true; to both of the methods.
> >
> > I meant to include the code. :)
> >
> > $(".musthave label")
> > .toggle(function(){
> > $(this).addClass("musthavechecked");
> > return true;
> > },function(){
> > $(this).removeClass("musthavechecked");
> > return true;
> > });
> >
> > It looks like .toggle is returning false if you don't explicitly set
> > it to return true. Let me know if this works or not.
> >
> > --
> > Brandon Aaron
> >
>
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/