Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Checking inherited visibility of DOM element with jQuery
- <div style="display:none;">
- <span id="hello">Hey</span>
- </div>
- if ($('#myitem').is(':visible')){
- /*Do some sort of stuff in here */
- }
- if($("#hello").is(":visible")) {
- //It's visible!
- }
- $('#hello').is(':hidden')
Add Comment
Please, Sign In to add comment