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
lalitha kellalalitha kella 

If i make checkbox field as checked then Fee field should become zero in apexclass

Anand SharmaAnand Sharma
we can implement this using java script
Create a <apex:actionFunction> method, on checkbox selection make make a javascript call to this action function, which in turn will call the controller metod to set the required field value.
<apex:actionFunction action="{!methodOne}" name="methodOneInJavascript" rerender="showstate" />
<apex:outputPanel onclick="methodOneInJavascript();" styleClass="btn">
    Click Me
Reference :