I need to initiate an ajax call once a div is empty (involving an animation).
if($(document).find('h2').is(':empty')) {
//do something
};
The only issue is, the way this statement is setup, it only looks once the document is ready. I'm trying to do this without using a setTimeout function.
For example, I know if I want to do something when a select dropdown is changed, I can use: $('select').change(). Any ideas?