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
An simple way is like below:
$(function() { $('#selectAll').click(function() { $(':checkbox').prop('checked', !$(':checkbox').prop('checked')); }); });
The Demo.