I\'m using jQuery in my site and I would like to trigger certain actions when a certain div is made visible.
Is it possible to attach some sort of \"isvisible\" even
I had this same problem and created a jQuery plugin to solve it for our site.
https://github.com/shaunbowe/jquery.visibilityChanged
Here is how you would use it based on your example:
$('#contentDiv').visibilityChanged(function(element, visible) { alert("do something"); });