jQuery: Show Loading… ?>

jQuery: Show Loading…

$.ajax(
{
	url: 'http://www.url.com/do-something',
	success: function(result) {
		$('#result').html(result);
	},
	beforeSend: function() {
		$("#loading").show();
	},
	complete: function() {
		$("#loading").hide();
	}
}
);

2 thoughts on “jQuery: Show Loading…

Leave a Reply

Your email address will not be published. Required fields are marked *

16 + 4 =