.is(':visible') //Selects all elements that are visible. if($('#yourDiv').is(':visible')){ //do stuff in here } //or $('#yourDiv:visible').callYourFunction();