A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
accesing document elements not having a form
alec stewart stewart
Joined: Dec 23, 2003
Jan 23, 2004 03:05:00
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.
Joined: Nov 08, 2001
Jan 23, 2004 05:58:00
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;
I agree. Here's the link:
subject: accesing document elements not having a form
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
Doumnet Listener Problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014