How do i check if a div is hidden or not???

How do i check if a div is hidden or not???

if i have defined a div on my page
<div class="Answer" style="display: none;">

then i wrote some jquery to make it shown or hidden

now i want write jquery to do different things if based on whether the div is visible or not?

How to check its visibility using jquery???


thanks in advance