You need to sign in to do that
Don't have an account?

what is the use of id in Visual force pages
Hi Friends
I have a small doubt that is what is the use of “ id” in visual force pages and how to use ,when to use these “id ” in vf page
I have a small doubt that is what is the use of “ id” in visual force pages and how to use ,when to use these “id ” in vf page
Ex:1 <apex:pageBlock id="theBlock">
Ex:2 <apex:pageBlockSection title="Information" id="et">
"An identifier that allows the pageBlock component to be referenced by other components in the page". Basically it allows you to select that pageBlock using Javascript, CSS and other web methods.
If you are trying to access the component from within the visualforce using javascript/jquery you need to access it by id.
An id is used to access value in javascript or in apex class etc,for example
Use javascript to get an element from the page, -refer below code how id is access in javascript
Thanks,
Shruti Khodabole
Salesforce Developer
http://www.zen4orce.com