Click here to Skip to main content
15,905,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created one web page using jsp.in which i included 3 sub jsp pages . to do javascript validation i need to get one specific html tag id from one jsp page to another jsp page .can you please help me to get the solution for this.
Posted

1 solution

Hi
There are two options:

Plain JavaScript

JavaScript
var ele = document.getElementById("id");


Or if you are using jQuery

JavaScript
var ele =$("#id");


Or do you want to select by tag?
 
Share this answer
 
Comments
ankusha d bhat 15-Jun-14 23:04pm    
i want in document.getElementById("id") method

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900