When I am trying to return a value from jQuery function, it is not working.
Belwo is my function :
function reset() {
$.post("/class/function.php", { function:"random" },
function(data) { return data; });
}
var new_val = reset();
alert(new_val);