JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://raw.github.com/tanathos/jquery.jqprint/13a4f0e0a46d1e8819f7552ed136abbf725cc33f/jquery.jqprint-0.3.js"></script>
<div id="header">
<h1>This is the Header</h1>
</div>
<div id="print"><br />
<input type="button" id="hide" value="hidden"/>
<input type="button" id="printMe" value="Print Me"/>
</div>
CSS
#hide
{
display:none;
}
JavaScript
$(function() {
$( "#printMe" ).click(function() {
$('#header').jqprint();
});
});