Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

CHECK IF AN ELEMENT IS DISPLAYED JQUERY

// Solution 1:
if($('.selector').is(':visible')){
    // element is visible
}else{
    // element is hidden
}
// Solution 2:
if($('.selector:visible')){
    // element is visible
}else{
    // element is hidden
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #CHECK #IF #AN #ELEMENT #IS #DISPLAYED #JQUERY
ADD COMMENT
Topic
Name
2+8 =