I'm trying to get the value of an input (text/textarea) and document.getElementById('rtext').value
returns nothing. If I set a default value (value="XXX"), it returns that value, eve if i edit it.
Here's some sample:
<div class="forms">
<p><textarea id='rtext'></textarea></p>
</div>
I'm mentioning that the form element <textarea>
isn't part of any form and i'm forced to use only document.getElementById
. No jQuery and no this.form.Id.value
Please help. THX