I use the jQuery plugin, it gets data from url, selects, calculates and writes some data to div.
I want to copy the contents divto another divwhen these functions do their job.
eg:
$("#div1").myfunction(); // it gets and calculates data and adds to
var contents = $("#div1").html(); // when myfunction() done, copy contents
$("#div2").html(contents);
when I ran this code, I did not have new content in #div2.
source
share