I have a class called boot:
.loading { display: none; vertical-align: top; margin: 0; padding: 0; background: url('../images/shared/loading_16x16.gif') center center no-repeat; width: 16px; height: 16px; }
with the following html snippet:
<div id="loading" class="loading"></div>
and my jQuery code (from the finished document):
$.ajaxSetup({ beforeSend: function () { $("#loading").show().children().show(); }, complete: function () { $("#loading").hide().children().hide(); } });
But show() doesn't work at all. Even if I run it from a Chrome window. In the Chrome developer window, if I uncheck the display: none box from the download class, a tag will appear.
What's happening?
source share