I need to fire an jquery action when a div is appended.
Something like:
if ($('div#myDiv').is_appended()) {
console.log('the div has been appended');
}
Is this possible?
Why do I need this
This question is related to this question where I have I modal div which is loaded after the jquery library, then I can't target the element in it.
Now I'm trying to do something when the modal div is load, not sure if I get it done though,