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

Changing value of hidden field 1

Status
Not open for further replies.

Peppi

Programmer
Apr 9, 2001
205
CA
Hi,

I have another problem in changing the value of a hidden field. The following line does not work:

document.getElementByID(rowChangedID.id).value = total;

where rowChangedID is a string value containing the server control identifier that was generated by ASP.NET. It references a hidden field.

I have another similar line that works without a problem:
document.getElementById(totalID.id).innerHTML = total;

Here the element is a span tag.

Any ideas?
 
Wow. How stupid of me.
That would have taken me forever to notice. Thanks.
 
Don't feel stupid, you're not the only one that's done that.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top