Posted on: 6/26/2014 4:36:28 AM | Views : 378

Hello everyone, I have this code:
$(document).ready(function () { // Header Checkbox click function $('.chbHeader input:checkbox').click(function () { if ($('.chbHeader :checkbox:checked').length > 0) { $('.chbChild :checkbox').parents("tr").addClass('highlightRow'); } else { $('.chbChild :checkbox').parents("tr").removeClass('highlightRow'); } $('.chbChild :checkbox').attr('checked', this.checked); }); // Child Checkbox click function $(".chbChild input:checkbox").click(function () { if (this.checked) { $(this).parents("tr").addClass('highlightRow'); } else { $(this).parents("tr").removeClass('highlightRow'); } if ($ ...

Go to the complete details ...