I have the following ajax serialize:
$.ajax({
type: "POST",
url: $form.attr('action'),
data: $form.serialize(),
error: function (xhr, status, error) {
ConfirmDialog('The page save failed.');
},
success: function (response) {
// need to retrieve an output value from the controller here
}
});
When it does a post, I am doing to an ActionResult method. How do I pass a value from the ActionResult so that I can get the value of it in when it is successful (under where it says success:function(response).
The output is in the response