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!

Popualte .Net Label with javascript

Status
Not open for further replies.

neilntruong

IS-IT--Management
Oct 30, 2003
63
0
0
US
I have a form that has some labels that contain name, adress, what have you... and along with it, there are text boxes that conatin detailed information:

what the description of the person is, about me, hieght, weight, etc that can be typed in and edited at any time..

In order to edit the personal information: name address, phone,etc they have to click on a button "Edit" which opens a popup.

The popup contains their info in textboxes. I am using a javascript to send back the values to the parent form, however, for some reason it is not working with labels. I tried using innerhtml but no dice...

Is there a better way to go about what I am doing? I would like to keep the labels on the parent window.
 
Thanks for the repsonse. I am not quite soure what you mean by that. I am somewhat new to programming, and havent bumped into anything like that. Could you step me through a little.

Thanks in advance!
 
a .net label just makes a span. Target the span with an id and a dom selector, on line 14 of your code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top