I want to run a script only when a specific div element is loaded. Since the website is using ajax, that specific div does load at default when the page loads. The div will load only later when a specific task is done.
I have tried the code below but can't make it work. How to do that?
jQuery( function($){
$(".div_class_here").on("load", function() {
// my code goes here
});