81
rated 0 times
[
86]
[
5]
/ answers: 1 / hits: 25952
/ 8 Years ago, tue, december 27, 2016, 12:00:00
In JQuery when trying to access elements, I see that if I have a form (lets say a textarea
), and I want to get the text
inside of it, I must use $(textarea).val();
Instead if I have a h1
element, I must use $(h)[0].innerHTML;
Why is this the case? h1.val()/textarea.innerHTML do not work
More From » jquery