I know this has been asked many times before...
I have a simple (\'#Div\').load(file.php?id=\'+id+\'&page=\'+page)
The on click event acts as fo
The problem is that load
is asynchronous. The function call returns before the AJAX request is complete. If you have code that needs to be executed after the request is complete, you need to use the complete
callback specified in the API:
$('#div').load('file.php?id='+id+'&page='+page, function(){
$("#loading").empty();
$("#button1").show();
});