Trying to get current data from textarea with jquery and replace it with what server returns. so far q
value is picked up right, instead of updating it with server returned content, it just replaces it with ' '
q = $('textarea#id_message').val();
alert(q)
$("textarea#id_message").val(' ').load( '/process/url?html=' + q );
Update
I just tried it passing server data to test results <div>
, this does work, <textarea>
does not.
$( '#results' ).html( ' ' ).load( '/process/url?html=' + q );