Check If Layer Is Visible Or Not Using JQuery
Posted by tech on
June 22, 2009
You can check if a layer like DIV or SPAN is visible or not in JQuery with the visible attribute.
1 2 3 | if ($("#MY_DIV_ID").is(":visible")) { alert('visible!'); } |
tags: layer, visible
No Comments
Detect If Layer Is Visible Or Hidden Using JQuery
Posted by tech on
June 15, 2009
Use the following Javascript code below to check if a layer (div, span, etc) is visible or hidden.
1 2 3 4 | <script> if ($('#layer_id').is (':visible')) alert ("visible"); if ($('#layer_id').is (':hidden')) alert ("hidden"); </script> |










