Adding valut to Input field on click
Posted
by Wazdesign
on Stack Overflow
See other posts from Stack Overflow
or by Wazdesign
Published on 2010-04-08T11:11:07Z
Indexed on
2010/04/08
11:13 UTC
Read the original article
Hit count: 315
I have this structure on form,
<input type="test" value="" id="username" />
<span class="input-value">John Smith</span>
<a href="#" class="fill-input">Fill Input</a>
when user click on the Fill Input ,
the data from span which has class input-value will be added to value, after clicking a tag the code should be look like this,
<input type="test" value="john Smith" id="username" />
<span class="input-value">John Smith</span>
<a href="#" class="fill-input">Fill Input</a>
there are many forms element/input on the single page.
thanks!
© Stack Overflow or respective owner