This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes accesing document elements not having a form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "accesing document elements not having a form" Watch "accesing document elements not having a form" New topic
Author

accesing document elements not having a form

alec stewart stewart
Ranch Hand

Joined: Dec 23, 2003
Posts: 71
i have an html document consisting of text box .
now how do i access the text box. the html document doesn't have a form element.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
some browser are not going to likr that the form tag is missing, but you should be able to access it with
var theVal = document.getElementById("TheName").value;
Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: accesing document elements not having a form
 
Similar Threads
Doumnet Listener Problem
How to getParameter value
transfer data from text box to multiple select list box.
Selection box question...
how to send dynamic values to a page by using a hyperlink