I think something like below with work.

$("[EMAIL PROTECTED]'checkbox']").bind('change', function(){
// you code
});


On 2/17/07, Gorkfu <[EMAIL PROTECTED]> wrote:


So far I have this:


$(document).ready(function(){
                if ($("[EMAIL PROTECTED]'checkbox']").is(":checked")){
                        $("div.sub2").hide("slow");
}

                else if ($("[EMAIL PROTECTED]'checkbox']").not(":checked")){
                        $("div.sub2").show("slow");
}

});


I'm trying to get this to loop through every time someone checks or
unchecks
a checkbox. With the above code it only uses it once when page loads.

How would I make it loop? I thought maybe AjaxStart or using $.post might
work, but I'm not sure how to implement those into this code. Any help or
advice would be appreciated, thanks in advance. =)
--
View this message in context:
http://www.nabble.com/Loop-Checkbox-Action-Question-tf3246372.html#a9024559
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/




--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to