codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  html usage in javascript  faizy457 at 17:08 on Monday, July 03, 2006
 

Hi
I have an html table with values. When someone clicks on edit button i have to replace the cell with text box having those values. Then if someone edits the text box i have to get those edited values.
i am using following javascript code

temp[j]=eval("(document.getElementById('"+j+"').innerHTML)") ;
( i have given the table cells an id now i am gettign values of the cells )

eval("document.getElementById('"+j+"')").innerHTML="<input type = text name = text'"+j+"' >";
(This replaces the table cell with text box)

document.forms["frmMyProjects"].elements["text'"+j+"'"].value = temp[j];
(this fills the text box with the value that was there in the table cell)

Now the problem is i want to get the value of text box when some one has edited it so .
how to do that.
Any help will be of great appreciation
Thanks








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem
•  Re: import contacts of msn/yahoo


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007