This should work with jQuery UI 1.9+ for tabs loaded by ajax (assuming your tabs have id tabs):
$("#tabs").tabs({ // loading spinner beforeLoad: function(event, ui) { ui.panel.html('<img src="loading.gif" width="24" height="24" style="vertical-align:middle;"> Loading...'); } });
You need to put load.gif in the right place and adjust the img tag src, width and height, but I think you get the idea. You can get a bunch of spinner images at http://www.ajaxload.info/
source share