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()
                                     {
                                             var output = this.value;
                                             console.log(output);
                                             $("div#"+output).show();
                                     });
                                 return false;
});

On Sep 17, 1:15 pm, tlob <[EMAIL PROTECTED]> wrote:
> can this be done more efficient?
> $(document).ready(function(){
>                         $("#auswertung > div").hide();
>
>                         $("form#form1").submit(function() {
>                                 $("#auswertung > div").hide();
>
>                                 $("form#form1 [EMAIL 
> PROTECTED]'checkbox']").each(
>                                     function()
>                                     {
>                                         if (!this.checked)
>                                         {
>                                             var output = this.value;
>                                             console.log(output);
>                                             $("div#"+output).show();
>                                         }
>                                     });
>                                 return false;
>                         });
>         });
>
> thx

Reply via email to