JQuery how to call a function when the div load completes : I have a page where i will have many buttons and links.

On clicking of the buttons and links, i have a div tag called "scriptWPQ2" which will refresh.

On refresh of this div completes, i need to write a function to change some data in the div dynamically.

At the moment i tried document.ready or window.load it does not help

please enlighten me on this

$(document).ready(function () {
   
    $('#scriptWPQ2').load(function () {

        //dosomething

    });
});

