+ 1

How can I capture the input in a <textarea></textarea> input field? With JavaScript?

11th May 2019, 7:50 AM
Emmanuel Joshua
Emmanuel Joshua - avatar
2 odpowiedzi
+ 2
<textarea id="someField">value goes here</textatea> Var value = document.getElementById("someField").value; Console.log(value) Or if you have jQuery: Var value = $("#someField").val();
12th May 2019, 5:38 AM
Adam
Adam - avatar
+ 1
U can get the access directly by id like: var val = someField.value;
12th May 2019, 5:54 AM
Сергей Луньков
Сергей Луньков - avatar