this is for checkbox checkall in a table
$(function () {
$('.checkall').click(function () {
$(this).closest('table').find(':checkbox').prop('checked', this.checked);
});
});
<input type="checkbox" class="checkall">
$(function () {
$('.checkall').click(function () {
$(this).closest('table').find(':checkbox').prop('checked', this.checked);
});
});
<input type="checkbox" class="checkall">
Comments
Post a Comment