iTEgg iTEgg - 4 years ago 118
jQuery Question

JQuery Visible Show

I have the following code:

$('#loading').css("visibility", "visible");


For some reason unknown to me when I use the CSS it works!

But when I use .show();

It does not work. Please kindly help. I am a new to JQuery.

Thank you.


<div class="footerOrder" id="loading" style="visibility:visible;">
<img src="../utils/loadingExistenz.gif" width="32" height="32" border="0" />

Tried this:

<div class="footerOrder" id="loading" style="display:block;">



And still no go for some reason!

EDIT: Weird thing is it is working for all the other DIVs!!

Answer Source

Use display:none; instead of visibility

This works fine for me




Working sample :

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download