<input type='text' name='name' id='name'>
<input type='date' name='date' id='date'>
<textarea name='text' id='text'></textarea>
Expected Output (in textarea box): My "name" and date is "date".
<input type='text' name='name' id='name'>
<input type='date' name='date' id='date'>
<textarea name='text' id='text'></textarea>
Expected Output (in textarea box): My "name" and date is "date".
4
Answers
Like this?
you can do that with vanila java script just apply change event on both of the first input and append the value of it to the value of textarea
this is html code
this is js code
Question is tagged [jquery] (regardless of need for this sample), so here you are