Hello. I am trying to instantly 'post' a user's input using ajax and jquery, along with a little javascript.
This is my HTML
<div id="postArea">
<TEXTAREA name="newBlog" cols="40" rows="10"></textarea>
<A HREF="#" onClick="post()">SUBMIT!</A>
</div>
and here is my code that goes along with that (in a separate file)
function post() {
var postValue = document.getElementsByName('newBlog')[0].value
$('#postArea').load(postValue);
}
I know that the variable is transferring to the java properly, but how do I place it in the 'postArea' div?
Thanks for any help!