How to print the contents of the JQuery ThickBox plugin?
Question
I have implemented the ThickBox Plugin and I am retrieving the content from using an AJAX request. The print link is printing the page behind the Thickbox. Is there a way to print the actual content?
I am using the following anchor tag and JavaScript link:
<a onclick="PrintPage()">Print</a>
JavaScript:
function PrintPage() {
window.print();
}
</script>
Solution
You'll have to specify a CSS print stylesheet which hides everything except the ajax retrieved content.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow