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