Hide DIV, if LAST unchecked checkbox - jquery
Currently, when a checkbox is checked, a div will show. Although, how can I do, so when I uncheck that div (IF IT IS THE LAST UNCHECKED DIV), the DIV will hide?


Currently, I only have the code to show the div:

    $('input[type="checkbox"]').click(function() {
        $("#userInfo").show(this.checked);  
        
    });
Hide DIV, if LAST unchecked checkbox - jquery
===

Currently, when a checkbox is checked, a div will show. Although, how can I do, so when I uncheck that div (IF IT IS THE LAST UNCHECKED DIV), the DIV will hide?


Currently, I only have the code to show the div:

    $('input[type="checkbox"]').click(function() {
        $("#userInfo").show(this.checked);  
        
    });