tags:

views:

27

answers:

1

I posted this question about 15 minutes ago and I got some good responses. But one thing i forgot is if the user unchecks the checkbox all the others that were hidden need to reappear again.... any ideas

i was using this

$(function() {
 $('input:checkbox').click(function() {
    $(this).closest('tr').siblings().each(function() {
        $(this).hide("slow");
    });
 });
});

but maybe there is a better way and how do i show the others that are hidden after I uncheck the checkbox

+1  A: 

Just change the .hide("slow") to .toggle("slow")

Robert