Jump to content

check if something is visible in jquery ui


mapleleaf

Recommended Posts

I am using jquery ui and need to check if an element is visible.

Normally

if (document.getElementById("bonuses").style.display = "none") {
//do whatever
}

would be what I need but the function runs regardless of whether the element is displayed or not.

Using jquery ui slider

 

Basically how do I check to see an elements style status in jquery?

In this case it might be position or opacity that is being altered but somehow I can't check the elements style.

Any help much appreciated.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.