My Jquery version is 1.3.2
I am using this below code to select all checkboxes -
$('#alldw').change(function(){
if($(this).prop('checked')){
$('tbody tr td input[id="dwchk"]').each(function(){
$(this).prop('checked', true);
});
}else{
$('tbody tr td input[id="dwchk"]').each(function(){
$(this).prop('checked', false);
});
}
});
But I am getting below error
Uncaught TypeError: Object [object Object] has no method 'prop' action:181
(anonymous function) action:181
jQuery.event.handle jquery.js:2568
elemData.handle.eventHandle
Any solution?
Note - I dont want to upgrade jquery as there are many dependencies on it