SELECT ALL CHECK BOX USING JAVASCRIPT

function select_all2() {   for (var i=0;i<document.form3.elements.length;i++)   {     var e =document. form3.elements[i];     if ((e.name != ‘check_all’) && (e.type==’checkbox’))     {        e.checked = document.form3.check_all.checked;     }   } }

on check select all checkboxs in jquery

HTML Code is <div> Select All <input type=”checkbox” name=”select_all” id=”select_all”> </div> <div> <table id=”Optiontable”> <tr> <td> <input type=”checkbox” name=”checkRow” id=”checkRow” value””> Select-1 </td> </tr> <tr> <td> <input type=”checkbox” name=”checkRow” id=”checkRow” value=””> Select-2 </td> </tr> <tr> <td> <input type=”checkbox” name=”checkRow” id=”checkRow” value=””> Select-3 <td> </tr> </table> </div> Script Code:: <script> $(document).ready(function() { $(‘#select_all’).on(‘click’, function() { if … Read moreon check select all checkboxs in jquery