How to print jquery thickbox plugin content?

I implemented the ThickBox plugin and I get content from using an AJAX request. The print link prints the page behind Thickbox. Is there a way to print the actual content?

I use the following anchor tag and JavaScript link:

<a onclick="PrintPage()">Print</a>

JavaScript:

    function PrintPage() {
        window.print();
    }

</script>
+3
source share
1 answer

You will need to specify a CSS print stylesheet that hides everything except the extracted ajax content.

+2
source

Source: https://habr.com/ru/post/1708834/


All Articles