Skip to content

Instantly share code, notes, and snippets.

@bruceyue
Created September 14, 2012 11:14
Show Gist options
  • Save bruceyue/3721361 to your computer and use it in GitHub Desktop.
Save bruceyue/3721361 to your computer and use it in GitHub Desktop.
chack all check box
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