Print any part of the page using jQuery.print Plugin

jQuery.print Plugin

In this tutorial I am going to do its stuff you jQuery.print Plugin to Print any part allocation of the page element. This plugin is helpful to ensue fast print feature of any div element you can easily configure to print particular div, span, paragraph or any html entity. In unexpected jQuery.print is a plugin for printing specific parts of a web page.

Print any part of the page using jQuery.print Plugin Integration Steps:

Use following fast steps to configure jQuery.print plugin in the region of your web page to print specific share of web page.

Libraries

Include as soon as js libraries upon page, First include jquery core library upon page also loan jQuery.print.js

<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="   crossorigin="anonymous"></script> 
<script src="jQuery.print.js"></script>

HTML

Create sample div and Specify an unique ID to your html element which you sensitive to create it printable.

<div id="printme">
Jignesh Gondaliya - My Public NoteBook
</div>

Add print button upon page, On click this button you can send chosen div for print.

JS

Finally accrual taking into account js upon page to totaling div id printme section for print by calling taking into account stroke $.print()

You can pass more option in above pretense to customise your print options

Leave a Reply