Thursday 19 September 2013

Dumping textarea content into JS Alert?

Dumping textarea content into JS Alert?

So, I have a form using TinyMCE editor and for debugging purposes I'd like
to have the content of the textarea dumped into a simple JS alert box on
submit:
<form method="post" action="somepage">
<textarea name="content" style="width:50%"></textarea>
<p>
<input type="submit" value="Submit">
</form>
Do you have an idea how this can me achieved? Thanks a ton! G

No comments:

Post a Comment