my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes Accessing hidden field Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Accessing hidden field" Watch "Accessing hidden field" New topic
Author

Accessing hidden field

ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 196
i am getting js error while giving
alert for showing value of hidden field

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56216
    
  13

I fixed your code tags. Please read UseCodeTags to learn how to use them.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56216
    
  13

Give the element an id and then use document.getElementById() to get a reference to it.
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 196
ya ... got it worked ..
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
personID !== PersonID

Eric
ravindra patil
Ranch Hand

Joined: Sep 01, 2006
Posts: 196
ha ha .. thanks for pointing out
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Accessing hidden field
 
Similar Threads
javascript reg expression to replace value="...
trying to populate hidden field on my JSF form using jQuery
Regarding to retain hidden variable on click of browser back button
Hidden fields
request parameter is missing