Nov 17, 2014 in Others 4487 views
PrintMe is a lightweight jQuery Plugin to print any html element.
Source: daniarlandis.es
1. INCLUDE JS FILES
<script src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script src="path_to/jquery-printme.js"></script>
2. HTML
<div id="dataexample"> <table class="table"> <thead> <tr> <th>Col1</th> <th>Col2</th> <th>Col3</th> </tr> </thead> <tbody> <tr> <td> A </td> <td> B </td> <td> C </td> </tr> <tr> <td> D </td> <td> E </td> <td> F </td> </tr> </tbody> </table> </div>
3. JAVASCRIPT
$("#dataexample").printMe();
4. OPTIONS
$("#example").printMe({ "path": "path_to/eternal.css", "title": "Document title" });
Tagged with:
printme
jquery plugin
page element
html element
print any html
print any page
jquery printme
print html element
Related Articles