Posts by Luan Henrique • 1 point
1 post
-
0
votes3
answers2877
viewsA: Javascript function returning Undefined
One way would be to create another method and pass the value to it within the "Success", and so have what you want. Example: $.ajax({ url : site, type : 'GET', success : function(x) { //Faz algo…