So currently i need to post the values of the textarea on the keypress of enter. After that i must set the return values in the textarea. I have failed many many times. So i hope someone can help me.
$(document).keypress(function(e) {
if (e.keyCode == 13 && !e.shiftKey) {
e.preventDefault();
var te = $('textarea').val();
$.post('includes/request.php' , {name: "value" ,value: te} , function(data){$('textarea').text(data);});
}
});