Tuesday, July 17, 2012

jquery – Javascript how to copy multiple text boxes into one text box



I have three separate text boxes and want a button which copies all the content from the boxes into a 4th box. How can I do this with javascript ?



<form>
<textarea cols=\"60\" rows=\"5\" id=\"box1\">PAST: </textarea>
<br /><br />
<textarea cols=\"60\" rows=\"5\" id=\"box2\">PRESENT: </textarea>
<br /><br />
<textarea cols=\"60\" rows=\"5\" id=\"box3\">FUTURE: </textarea>

<br /><br />
<input name=\"\" type=\"button\" />
<br /><br />
<textarea cols=\"60\" rows=\"5\" id=\"box4\">All Past Present Future</textarea>
</form>






Rating: 3 out of 5 based on 5 ratings


The post jquery – Javascript how to copy multiple text boxes into one text box appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/jquery-javascript-how-to-copy-multiple-text-boxes-into-one-text-box.html

No comments:

Post a Comment