I have the following scenario:
function myHandlerFunction(data){
   //do anything with data...
}
function ajaxHTTP(url, dataPost, funct){
   $.ajax({
       type: "POST",
       url: url,
       data: dataPost,
       dataType: "html",
       success: function(data){
            funct(data); //Response is coming as plain-text
       },
       error: function(errMsg) { } //To see the error message, use the var of parameter
   });
}
ajaxHTTP("https://example.com", { field: "value" }, myHandlerFunction);
It is working well, but I need to pass parameters in method myHandlerFunction, how I can do that?
Is possible: ajaxHTTP("https://example.com", { field: "value" }, myHandlerFunction(arg1, arg2));