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); }); });
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); }); });