Created
August 12, 2011 19:11
-
-
Save mangantj/1142743 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function AttachCheckBoxListOnClickEvent(controlId) { | |
$("#" + controlId + " input").click(function () { | |
if ($(this).parent().find('input:checkbox:first').is(':checked')) { | |
if ($(this).is('checked') == false) { | |
$("#" + testStageCheckListControlId + " tbody td:first-child input:checkbox").removeAttr('checked'); | |
} | |
else { | |
SelectAllCheckBoxes(controlId, true); | |
} | |
} | |
else { | |
SelectAllCheckBoxes(controlId, false); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment