JQuery -Funktion Return
function myFunction(p1, p2) {
var a = "";
$.ajax({
method: "POST",
url: "/url",
data: {p1: p1,p2: p2},
success: function (data) {a = data.result;},
error: function (data) {a = data.result;}
});
return a;
}
Spotless Swan