In programming we must design our site User-friendly. So for that this thing is very useful We can select multiple checkbox in a page with single click with the use of javascript Here is the code for javascript On which input you want to genrate this action just put the function on onclick event. <inpt type="button" onclick="selectall()"> then genrate selectall function in javascript <script type="text/javascript"> function selectall() { var chks = document.getElementsByName('del[]'); ...