function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ch ranjithch ranjith 

i have two panels, first one holds checkbox,second contains some text that is changed response to checkbox

<apex:page id="thepage">
<script>
function changefont(input,textid)
{
if(input.checked)
{
document.getelementbyid(textid).style.fontsize="100px";
}
else
{
document.getelementbyid(textid).style.fontweight="normal";
}
}
</script>
<apex:outputPanel layout="block">
<label for="checkbox">click</label>
<input id="checkbox" type="checkbox" onclick="changefont(this,'{!$component.thepanel}');"/>
</apex:outputpanel>
<apex:outputPanel id="thepanel" layout="block">change my font</apex:outputPanel>
</apex:page>
Abhinav GuptaAbhinav Gupta
What is your question ?