Sunday, June 15, 2014

How to get Element Id using Jquery in Visualforce Salesforce

Ok so you have made a very nice page and want to add Jquery to get some visual effect or maybe for some validation, but stuck on how to get Id of an element. As in Javascript we can get Id using hardcoding as:
var eleId = documnet.getElementById("jO1:jO8");

The problem in Jquery is that we can use "#" tag to get the value but it is not effective as some time we may need to get array to values so in that case we can use the below approach, also we can use name to get jquery object.



No comments:

Post a Comment