I have the following block of javascript in my webpage:
console.log($.ui);
$("#schoolBagBtn").click(function(){
$.ajax({
url:"./php/get.php",
success: function(){
console.log($.ui);
}
});
});
And the result of running this javascript is the first $.ui is defined as a jQuery object and the one which after calling the ajax is undefined. And I need it to be a object too.
Can anyone help?