showing results for - "jquery print div"
Anna
19 Feb 2019
1jQuery('#divId').print(/* options */);
2
3jQuery.print('#divId'/*, options */);
4
5jQuery('#divId').print({
6    globalStyles : true,
7    mediaPrint : false,
8    stylesheet : null,
9    noPrintSelector : '.no-print',
10    iframe : true,
11    append : null,
12    prepend : null,
13    manuallyCopyFormValues : true,
14    deferred : jQuery.Deferred(),
15    timeout : 750,
16    title : null,
17    doctype : '<!doctype html>'
18});
19
20/**
21 * NB! The above samples will not run with pure jQuery
22 * Methods jQuery.print / jQuery.fn.print are populated by third-party
23 * plugin 
24 * 
25 * One should either download this plugin and host it along with
26 * own project or to include it directly from CDN 
27 * 
28 * Use the link https://doersguild.github.io/jQuery.print/ to download the
29 * plugin from Github or install it with npm (npm i --save jQuery.print)
30 * 
31 * Add this tag to your html template to include the plugin from CDN
32 * <script src="https://cdn.jsdelivr.net/npm/jQuery.print@1/jQuery.print.min.js" async></script>
33 * (be sure to paste it under the tag which loads jQuery)
34 */