+ Start a Discussion

What is the better way to get field ID ?

Good day,


May i know what are the way to get field ID ?


normally we use document.getElemementByID('myField')


but is there any better way ?


Thank you !

Message Edited by Nakata on 12-07-2009 11:41 PM
Best Answer chosen by Admin (Salesforce Developers) 

Do you have a Visualforce page and you are trying to get the Id of a specific html element?  If so, the following page in the Visualforce developer guide might help: