Is there an event in JQuery, Javascript, or the DOM in general that I can subscribe to that will notify me when an element become visible or invisible (display:none)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are events for DOMAttrModified and onpropertychange (IE) that can track DOM element changes and fire an event.
Wrote about this with a jQuery plug-in that allows monitoring changes to CSS styles here:
http://www.west-wind.com/weblog/posts/478985.aspx
This might be just what you need as you could do something like: