im trying to pass a value out of a get jQuery function here is the example:
function a(){
var test="";
$.get("js/getDATEinvoice.php?inv=" + invoice, function(html) {
test=html;
});
alert(test);
}
I have tried with returns and i just can not get the value...
I have to call the function inside a function so it can get the value and proceed doing stuff.
Thanks in advance!