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
CooldayCoolday 

How to include method name on my Visualforce button?

How can I include method name in this below line in Visualforce- 

<button class="accept-btn" type="button">Accept</button>

Thanks
AnkaiahAnkaiah (Salesforce Developers) 
Hi,

You can include the action attribute to call apex method.

Refer the below link.
https://salesforce.stackexchange.com/questions/145315/how-to-call-apex-method-from-command-button-on-custom-visualforce-page

If this helps, Please mark it as best answer.

Thanks!!