[jQuery] How to know if div opened or closed

[jQuery] How to know if div opened or closed


Hello everybody !!!
I'm opening and closing a div and I would like to know if at a precise
moment this div is opened or closed.
Something like : $(div).isOpened() = "true"
Thanks in advance