I think my question is pretty simple, and please excuse me if it is an obvious one, or if it has been answered in another post (I did search ).
I am trying to pass the value of the contents of the wymeditor textarea to an alert box when the submit button is clicked.
I know the textarea value can normally be referenced by:
- Code: Select all
alert(document.getElementById('myTextarea').value)
but when applied to the wymeditor textarea, the value is null.
What variable or DOM reference can I use to make the alertbox in the code above return the value of the wymeditor textarea?
Thanks very much for your time, and the great tool.