[jQuery] Re: simple if not :checked then show div - BEGINNER

2008-09-17 Thread tlphipps
Well, what do you know! I always wondered why the :not syntax wasn't included in the selector engine. I always thought it had to be separated in the chain. Thanks Richard for providing this example!! On Sep 17, 1:52 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > Also not tested: > > $("#fo

[jQuery] Re: simple if not :checked then show div - BEGINNER

2008-09-17 Thread Richard D. Worth
Also not tested: $("#form1 :checkbox:not(:checked)").each( - Richard On Wed, Sep 17, 2008 at 2:44 PM, tlphipps <[EMAIL PROTECTED]>wrote: > > Seems pretty straightforward to me. I would recommend one small > syntax change. > > 1) $("#auswertung > div") => $("#auswertung div") > > and I thi

[jQuery] Re: simple if not :checked then show div - BEGINNER

2008-09-17 Thread tlphipps
Seems pretty straightforward to me. I would recommend one small syntax change. 1) $("#auswertung > div") => $("#auswertung div") and I think you could simplify the each like (NOT TESTED): $("#form1 :checkbox").not(':checked').each( function()

[jQuery] Re: simple if not :checked then show div - BEGINNER

2008-09-17 Thread tlob
can this be done more efficient? $(document).ready(function(){ $("#auswertung > div").hide(); $("form#form1").submit(function() { $("#auswertung > div").hide(); $("form#form1 [EMAIL