Last active
August 29, 2015 14:08
-
-
Save dudesl/6a3b9f27645d38dd6c53 to your computer and use it in GitHub Desktop.
Print de un elemento específico
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#print').on("click", function () { | |
printVoucher() | |
}); | |
function printVoucher(){ | |
var instructionVoucher = document.getElementById("paperTicketInstructions"); | |
var print = window; | |
print.document.write(instructionVoucher.innerHTML); | |
// print.document.close(); | |
// print.focus(); | |
print.print(); | |
// print.close(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment