I am trying to print a dialog box. I am able to print everything from the dialog box except the Textbox
values.
HTML
<div class="calculator">
<a href="#" onclick="printElement('.calculator')">
<img src="images/icon_print.png" /> Print
</a>
</div>
JS
function printElement(element) {
var text = document.getElementById("age_input").value;
alert(text);
w = window.open();
w.document.write($(element).html());
w.document.close();
document.getElementById("age_input").value = text;
w.print();
w.close();
}
How do I print the dialog with the values in the Textbox
elements included?