I want to change the value of a variable. I tried the following method but it does not work:
function MapData() {
var bbs=0 ;
$.ajax({
url: "/admin/subfactors/BBth",
type: "GET",
success: function (result) {
bbs = result;
}
}
});
return bbs;
};