Created
September 14, 2012 11:14
-
-
Save bruceyue/3721361 to your computer and use it in GitHub Desktop.
chack all check box
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 ckeckAllBoxs(checkAll) | |
{ | |
if($j('#checkAll').is(':checked')) | |
{ | |
$j('.checkBox').attr('checked', 'checked'); | |
} | |
else | |
{ | |
$j('.checkBox').removeAttr('checked'); | |
} | |
} | |
<apex:column> | |
<apex:facet name="header"> | |
<input type="checkbox" id="checkAll" onclick="ckeckAllBoxs();"/> | |
</apex:facet> | |
<apex:inputCheckbox styleClass="checkBox" value="{!line.IsCreatePayment}" /> | |
</apex:column> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment