$(document).on("click", "#btnPrin9t", function(e) {
// e.preventDefault();
// e.stopPropagation();
$("#table, #txtW, #txtAt").printThis({
debug: false, // show the iframe for debugging
importCSS: true, // import page CSS
importStyle: true, // import style tags
printContainer: true, // grab outer container as well as the contents of the selector
loadCSS: "", // path to additional css file - use an array [] for multiple
pageTitle: "", // add title to print page
removeInline: true, // remove all inline styles from print elements
printDelay: 0, // variable print delay; depending on complexity a higher value may be necessary
base: true,
header: "",
footer: "<br>Total in Words:'"
$('#txtWord').val()
"'", // prefix to html
formValues: true // preserve input/form values
});
});
フッターを使用して入力ボックスの値を印刷したい。最初の行に示されているように印刷クリックを使用できますが、いくつかの調整が必要です。フッターで使用したいのですが、誰でも助けてくれます。