I have a div that fits on any page. When you click on this div, it will be closed using jquery validation in its css class:
$('.content-box-header').click(function () { $(this).parent().children('.content-box-content').slideFadeToggle(200); }
On several pages, I need to set this div with a specific identifier in order to perform some tasks after closing the div. For instance:
$('#divleft').live('click', function (e) { runTask(); }
The above sample is a trigger for this div with a specific id = divleft.
The problem is that I would like to check something ONLY after the div is really closed, but in my current situation, runTask () is executed before the div is closed.
So my question is how can the runTask () method; lingers after the div is really closed?
Thanks in advance!!!!
source share