0
Check/Uncheck All With jQuery
This is a short script I wrote that will check or uncheck all checkbox inputs within a list.
$(function() {
$('#checkall').live('change', function() {
var chk = $(this).attr('checked');
$(this).parent().find('li input[type="checkbox"]').attr('checked', chk);
});
});
Levels: Syntax: jQuery





