You need to sign in to do that
Don't have an account?
ch 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>
<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 Gupta
What is your question ?