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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create <input type=hidden> using DOM?

Status
Not open for further replies.

joelwenzel

Programmer
Jun 28, 2002
448
How do you create a form INPUT element of type hidden?
 
I'm not sure what you mean, how about creating the hidden field in HTML first and change the value using DOM?
 
I found the answer. It is

document.createElement("input=hidden");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top