Hi, I'm making a basic ajax function in jquery which echoes the number of rows found in a MySQL Query.
function checkEventIDClass(id) {
var params = 'method=checkEventIDClash&table=test&id=' + id;
$.ajax({
type: "POST",
url: "ajax.php",
data: params,
success: function(result){
return result;
}
});
}
Is it possible to use this returned value in another function? I have tried but only get undefined values. In this situation, it will be acceptable to use synchronous calls.
Any advice appreciated.
Thanks