Page 1 of 1

Copy some html,with input boxes?

Posted: Wed Mar 21, 2007 1:35 pm
by dexter
Say I have:

Code: Select all

<div id="abc">    <input type="text" name="myname" value="TEST"></div>
if I use abc.innerHTML, I won't get the new value for the text field (if changed by the user). What would be the best way to accomplish fetching the new value to "properly" copy the HTML?
Thanks...

Posted: Thu Mar 22, 2007 8:53 am
by Lixas
you can use javascript onChange event to call a function after user edits the filed

Posted: Wed Sep 05, 2007 2:24 am
by Gyanu
yea it is better than that first one.