I have the following function:
function ProcessFormData(formName, proItem, ctl, method)
{
//some operations here
$.ajax({
type: "POST",
url: "CommonControl/GenericProcess",
data:aData,
success: function(response){
//return response;
} });
var fBar=ProcessFormData(a,b,c,d)
How can i return response such that:
var fBar=ProcessFormData(a,b,c,d)
return ajax's success response
I have tried all examples provided here to no success.
Thank you