I am having a page with print icon in there. Now, I need to grab that class and pull the content of that page in an modal using colorbox and than change the print class to a new name so that i can execute actual print by window.print. Is there a way I can pull t开发者_运维知识库he content from present page using $("selector").html() and place inside the modal. Moreover, I need to pull the css as well.
thanks in advance for any suggestions.
You can set the html of an object to the html of another object:
$('#modal_dialog').html($('selector').html());
精彩评论