I have to print out a div which I\'m doing in the following way:
div
function PrintElem(elem) { Popup(elem.html()); } function
On my case I just needed to use the code below: