How To Add And Combine Text Value Of 2 Textarea Elements And Populate The Combined Text In A Third Textarea Using Javascript?
Hi I have 3 textarea elements say tb1,tb2 and tb3. The text values of tb2 and tb3 should get populated in tb1 as soon as i start typing in tb2 or tb3.The format in which text shoul
Solution 1:
$($$('#tb2, #tb3')).keyup(function(){
var value = $('#tb2').val() + ' ' + $('#tb3').val();
value = jQuery.trim(value);
$('#tb1').val(value);
});
Post a Comment for "How To Add And Combine Text Value Of 2 Textarea Elements And Populate The Combined Text In A Third Textarea Using Javascript?"