How to check the div(any element) is visible/Hidden

HTML :

<div id=”divPatientDetail”></div>

JQuery :

if ($(“#divPatientDetail”).is(“:hidden”)) {}

if ($(“#divPatientAcuityDetails”).is(“:visible”)) {}

Explanation :

Codition will check whether “divPatientDetail” div is hidden or visible