VISUALFORCE and JS CODE:


onclick=”changeFont(this,'{!$Component.thePanel}’);”/>
Change me!

Note:
{!$Component.idName}‘ : This is the way of passing particular visualforce component id into the javascript.

Written by 

Salesforce MVP | Lightning Champion | 16x Salesforce Certified | Application Architect | 6x Trailhead Ranger | Techforce Services | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *

*