You need to sign in to do that
Don't have an account?
Lithiums
inputcheckbox value
I was trying to get the value of the inputcheckbox on click, it always return 'on' instead of 0 or 1. How to I get the value of the checkbox so that I can knw if it is checked or unchecked.
<apex:repeat value="{!phaseList}" var="p">
<apex:inputCheckbox id="chkbox" onclick="createTask('{!$Component.chkbox}')"/>
<apex:outputLabel for="chkbox" value="{!p.Name}"/><br/>
</apex:repeat>
Lithiums
Try to use 'checked' attriubute if you are trying to get value in javascript.
All Answers
Lithiums
Try to use 'checked' attriubute if you are trying to get value in javascript.
Nice, it worked.
Thanks a lot !!!