this list is amazing! Thank you all so much. All methods worked. Why oh why do I over complicate things? :)
jQuery: Embrace Simplicity. ^ My new mantra. On 2/1/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
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 > discuss@jquery.com > http://jquery.com/discuss/ > > > _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/