I want to excecute an action on display or visibility change (really in display:block or visibility:visible) with jquery if posible or javascript, but I've researched a lot in this forum and I couldn't acomodate any of the suggested solutions for similar problems.
The more near that I've been was:
if($('.class').css('display') == 'none'){ // do something }
But obviously this is only an if, and doesn't catch the event and nothing...
Someone could please help me? Thanks
give your div element a unique class and check the length of that div, if the length of that div is greater than 0, it means that div exists or vice versa.