Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get element from document

Status
Not open for further replies.

Dummy99

Programmer
Apr 25, 2002
30
0
0
FR
I'm trying to pick up the content of iInput box "q01" with the following code

qty=document.getElementById('q01')

but I get "[Object]" instead of the content.

What is the correct coding?
Thanks
 
If you ask for the field, you get the field (an Object). Maybe what you need is the value.

Code:
qty=document.getElementById('q01').value;

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top