If I have a textarea like var textarea = $('textarea'), how can I set the value to it using the JavaScript property value, and not the jQuery property val()?
textarea
var textarea = $('textarea')
value
val()
I think I need to convert textarea to a JavaScript object first, but how do I?
You can pull the HTMLElement using array notation:
$('textarea')[0].value
...will get the value of the first element in the $('textarea') jQuery list.
$('textarea')