You need to sign in to do that
Don't have an account?
check boxes
hello group,
i hav a few records in pageblock table, in that i placed check boxes,
by using the below code
<script>
function checkAll(cb){
var inputElem = document.getElementsByTagName("input");
for(var i=0; i<inputElem.length; i++){
if(inputElem[i].id.indexOf("checkedone")!=-1)
inputElem[i].checked = cb.checked;
}
}
</script>
--------------------------------------------------------------------
<apex:facet name="header">
<apex:inputCheckbox >
<apex:actionSupport event="onclick" action="{!deleteselected}" onsubmit="checkAll(this)" reRender="Selected__pbs"/>
</apex:inputCheckbox>
</apex:facet>
<apex:inputCheckbox id="checkedone">
<apex:actionSupport event="onclick" action="{!deleteselected}" reRender="Selected__pbs"/>
</apex:inputCheckbox>
</apex:column>
iam getting when i click a check box in a table, all check boxes associated with records are getting check........
upto now iam happy....
my requirement is .....
if i uncheck any checkbox associte with any single record automatically the check box in column header (placed in the facet) should get uncheck.........
usually we can observe in inbox in our mails.....
how can i achieve my requirement can any one pls correct my code?
thanks for giving reply(in advance)
Hi Ravi,
for this you can try the followed script
call this js function on click of the individual checkbox
All Answers
Hi Ravi,
for this you can try the followed script
call this js function on click of the individual checkbox
hi harsha,
can u pls eloberate ur code i.e, hot to call js function on click of the individual checkbox.
beceause iam new to salesforce
thanks for giving reply
Hi Ravi,
It is like