Having read this question, I found the answers outdated/depreciated and hence am asking if anyone would have any 'updated' answers to:
Does JQuery have a function call like
$('#myNewDivId').on('create', function(){
});
for a single div, or multiple 'appends':
$('.myNewDivWithClass').on('create', function(){
});
for a dynamically created div?
- I would rather not include plugins (esp. 'outdated' ones like .livequery() plugin)
- 'DOMSubtreeModified' seems to be depreciated, and so would there be an alternative?
- I would need this function to be compatible with (at least) IE 10 + 11.
What I'm looking to do is on create of this 'new element', is to have an ajax call back to my controller to 'replace' this div with a partial view? However, without a jquery method to use, it seems more difficult than expected