Text Area

Element




My Notes

To create text area we need the following code:


	<textarea id="ta1" cols="50" rows="5" placeholder="Text Area 1"></textarea><br>
	<button type="submit" id="btn1" >Transfer2</button><br>
	
	<textarea id="ta2" cols="50" rows="5" placeholder="Text Area 2"></textarea><br>

Transfer text from one box to another.

	document.getElementById('btn1').onclick = function () {
	console.log(document.getElementById('ta1').value.toString());
	document.getElementById('txtArea2').value = document.getElementById('txtArea1').value.toString();
	};

Radio Buttons