File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
transfer data from text box to multiple select list box.
Doumnet Listener Problem
Selection box question...
how to send dynamic values to a page by using a hyperlink
How to getParameter value