I'm convinced this has been asked before and have found quite a few resources on this topic but I'm still very confused and not sure how to proceed.
I have a textarea whose data I need to send to a server and I need to capture the result which is a string. Here is my attempt:
$(document).ready(function () {
$('#output-box').hide();
$('#form1').submit(function () {
var input = $('#txtinput').val()
$.post('Default.aspx', { func: "ParseData" }, function (data) {
$('#output-box').load(data).fadeIn();
});
});
});
How horribly am I off the mark?