.is(':visible') //Selects all elements that are visible. if($('#Div').is(':visible')){ // add whatever code you want to run here. } $('#yourDiv:visible').callYourFunction();