Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 Javascript: Empty Hidden Form Field
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

seven
Senior Member

USA
1037 Posts

Posted - 08 January 2003 :  14:17:08  Show Profile  Visit seven's Homepage
What javascript code can empty the value of a hidden form field?
Everything I try ends in a big:

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 08 January 2003 :  14:35:58  Show Profile
document.formname.itemname.value = ""

Example...

document.someformname.hiddenitem.value = ""

<form name="someformname">
<input type="hidden" name="hiddenitem" value="somename" />
</form>

Edited by - Hamlin on 08 January 2003 14:38:25
Go to Top of Page

seven
Senior Member

USA
1037 Posts

Posted - 08 January 2003 :  19:35:34  Show Profile  Visit seven's Homepage
That's what I had... I had another bug elsewhere that I didn't catch.
Thanks.

quote:
Originally posted by Hamlin

document.formname.itemname.value = ""

Example...

document.someformname.hiddenitem.value = ""

<form name="someformname">
<input type="hidden" name="hiddenitem" value="somename" />
</form>



Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.48 seconds. Powered By: Snitz Forums 2000 Version 3.4.07