// 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 }