Check / Uncheck all with JQuery

Check/Uncheck All With jQuery

Posted: 14 Nov 2010 07:24 AM PST

$(function() {
    $('#checkall').live('change', function() {
        var chk = $(this).attr('checked');
        $(this).parent().find('li input[type="checkbox"]').attr('checked', chk);
    });
});
This entry was posted in javascript and tagged , . Bookmark the permalink.

Comments are closed.