Click here to Skip to main content
15,868,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
my code
when i use jquery data table it works only first time not working on next time
JavaScript
$(function()
{
   $('body').on("click","#hcb", function () {
            $("input[name='cb']").attr("checked", this.checked);
        });
});
Posted
Updated 21-Nov-14 20:28pm
v5
Comments
King Fisher 22-Nov-14 2:28am    
please add proper Code block

1 solution

JavaScript
$(document).ready(function () {
      $('body').on("click","#hcb", function () {
$("input[name='cb']").attr("checked", this.checked);
});
   });

Hope it helps
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900