JSFiddle - React, Tailwind, and code Playground
by Philippe Gioseffi
HTML
<script src="https://recargafacil.riocard.com/resources/js/jquery.print-1.5.1.js"></script>
<div id="printWithFrame">Div Print With Frame
<br />
<button class="no-print" id="btnPrintWithFrame">
Print With Frame
</button>
</div>
<div id="printWithoutFrame">Div Print Without Frame
<br />
<button class="no-print" id="btnPrintWithoutFrame">
Print Without Frame
</button>
</div>
JavaScript
$('#btnPrintWithFrame').on('click', function() {
$('#printWithFrame').print({
iframe: true
})
});
$('#btnPrintWithoutFrame').on('click', function() {
$('#printWithoutFrame').print({
iframe: false
})
});