$('input#mybutton').click(function() { var text = $('textarea#mytextarea').val(); //send to server and process response });