views:

17

answers:

1

I find form plugin interesting and i want to know that how i can embed ajax response in html text area in asp.net mvc 2. any idea?

Here is the link of that control http://jquery.malsup.com/form/#file-upload

+1  A: 

You could use the success callback which will be invoked once the AJAX request succeeds and update the contents of your textarea:

$('#myForm').ajaxForm({
    success: function(result) {
        $('#txtArea').val(result);
    }
});
Darin Dimitrov