Say, for example, I store the HTML content of the body tag in a jQuery variable. In this way,
var current_html = $("body").html();
Then I add some DIV and make other dynamic changes. Even if I update the current_html variable after every DOM change for some reason, it only ever displays the original DOM content when the document loads and does not contain any added elements .... although I update the current_html variable.
So, there is a way to read the current html DOM, including all elements that were added dynamically. I tried various .live applications, but not joy.
Thanks in advance.
source
share