Activity › Forums › Salesforce® Discussions › How can i call Apex Controller Method from HTML tag? Salesforce® Discussions How can i call Apex Controller Method from HTML tag? Posted by Suraj on May 5, 2017 at 10:00 AM How can i call Apex Controller Method from HTML tag? Saurabh replied 9 years, 1 month ago 2 Members · 1 Reply 1 Reply Saurabh Member May 12, 2017 at 1:52 PM Hi Suraj So if you want to work with a “plain” HTML (for example to reduce the page view state size) you can use JavaScript Remoting controls or just attach an action function to your button: <input type=”button” name=”submit” id=”searchSubmit” onclick=”doSomething();”/> <apex:actionFunction name=”doSomething” action=”{!myApexMethod}” reRender=”somePanel”/> Hope it may help you Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me