- Code:
$(function(){
var str = ABC(ID); // str = strReturn
});
function ABC(ID) {
$.get('/u' + ID + '/profile?mode=editprofile&page_profil=friendsfoes', function (e) {
var strReturn;
// do somthing here and strReturn has some value
// return strReturn
// e.g strReturn = "123"
strReturn = "123";
return(strReturn); // does not work
})
}
How do I get the return value ??
Last edited by TamDonCo on September 16th 2016, 3:46 pm; edited 1 time in total