+ Start a Discussion
NakataNakata 

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) 
michaelforcemichaelforce

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:

 

http://www.salesforce.com/us/developer/docs/pages/index_Left.htm#StartTopic=Content/pages_access.htm?SearchType=Stem