Possible Duplicate:
How to show loading spinner in jQuery?
I have a div
that has a lot of stuff in it, and doesn't load into the DOM smoothly. Is there a way I could add a spinner kind of like you see in AJAX calls? Here is my current code.
<h4>Network Printers</h4>
<div id="demo1" class="demo">
<ul class="printer-tree">
<li>Many List Items</li>
</ul>
</div>
<div class="spinner" style="display:none;"></div>
$(function () {
$("#demo1").jstree({
"plugins" : [ "themes", "html_data", "checkbox", "sort", "ui" ]
});
});