0
Hello, I have the fuction list , which brings a GET url in another Function..
How do I get the return of {data.name} out of the Function list ?
This form below does not return :/
function list(){
$.get( "<?php echo BASE_URL;?>/open/start/list", function( data ) {
data = typeof data == 'string' ? JSON.parse(data) : data;
return data.name;
});
}
//Trazer o retorno de data.name
console.log(list());
thanks dvd, everything went fine here!
– Di Max Developer