Thanks for the suggestion I must be blind, since I didn't see the change
event when i was going through them. It works like a charm, thanks.

Now to figure this out for multiple levels such as..

<>checkboxA1
        <>checkboxA2
                <>checkboxA3
                <>checkboxA3
<>checkboxB1
        <>checkboxB2
                <>checkboxB3
                <>checkboxB3

I could type the code over and over but that would not be appropriate
coding, such as the following:

        $("[EMAIL PROTECTED]'checkboxA1']").change(function(){ 
                if ($(this).is(":checked")){ 
                        $("div.checkboxA2").hide("slow"); 
                } else { 
                        $("div.checkboxA2").show("slow"); 
                }
        });

        $("[EMAIL PROTECTED]'checkboxA2']").change(function(){ 
                if ($(this).is(":checked")){ 
                        $("div.checkboxA3").hide("slow"); 
                } else { 
                        $("div.checkboxA3").show("slow"); 
                }
        });


Alexandre Plennevaux wrote:
> 
> I would try somehting like this:
> 
> 
> $(document).ready(function(){
>       $('[EMAIL PROTECTED]'checkbox']).change(function(){
> 
>               If ($(this).is(":checked")){ 
>                       $("div.sub2").hide("slow");
>               } 
>               else
>               { 
>                       $("div.sub2").show("slow");
>               }
> 
>       });
> });
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Loop-Checkbox-Action-Question-tf3246372.html#a9025427
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to