how to insert value of an textarea to another textarea with javascript -
well mean. lets have 2 textarea:
<textarea id="first" class="txtarea" name="in_first" cols="80" rows="15">first textarea</textarea> and:
<textarea id="second" class="txtarea" name="in_second" cols="80" rows="15">first textarea</textarea> in final result, want move value of first textarea second textarea javascript only, please not sugest me other programing language.
i value of first textarea code following:
var textareavalue = $("#first").text(); now, how can insert second textarea? or maybe have method, please let me know.
using jquery val() method:
$firsttextarea=$("#first").val(); $('#second').val($firsttextarea); using jquery text() method:
$firsttextarea=$("#first").text(); $('#second').text($firsttextarea);
Comments
Post a Comment