Does anyone know of an onHide()
event or something similar in jQuery?
I tried:
$(this).bind('hide', function(){
console.log('asdasda')
})
But apparently that doesn't work.
Edit:
Just to clarify, it's being hidden using CSS display:none
.
I'm aware of the callback function but as I'm not hiding it (the CSS is) I can't use it.
For what it's worth, I need to check when a dropdown is visible. It's being shown by the following CSS:
ul li:hover ul {
display: block;
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…