JQuery snippet: check and uncheck all

JQuery snippet: check and uncheck all

[javascript]

function checkAll() { $(‘input:checkbox’).attr(‘checked’, ‘checked’); }

function uncheckAll() { $(‘input:checkbox’).removeAttr(‘checked’); }

[/javascript]