Possible Duplicate:
select all checkboxes command jquery, javascript
I am having trouble selecting all checkboxes in a div with jquery. This is the code that I currently have for the function
function selectAllCheckBoxes() {
$('#additionalrecords input[type="checkbox"]').attr('checked', 'checked');
}
Any help is greatly appreciated.
console.log($('#additionalrecords input[type="checkbox"]')).additionalRecords<div>element?