I have HTML page which have multiple check boxes and individually they can be checked. I have button select, so what I am suppose to do is. When I click on sel
select
Try this-
var checked = true; $('#selectAll').click(function(event) { $('table tr').each(function( index ) { $(this).find('input[type="checkbox"]').prop(checked, true); }); checked = !checked; });