Hai,
I had used 4 DIV's in my web page.
During print a particular DIV, there is a need to print value of one Text Box (Note: before print user will type something in Text Box) and I had placed some Check Box also. The check box also need to be printed with check or unchecked whatever condition.
For this purpose, I had used the following code;
The DIV is printing but without the value of Text Box.
Please help me to print the DIV with the value of Text Box and Check Boxes.
Thanks & Regards,
Guna
Rajeesh MenothPosted Jan 21, 2016, 12:11 AM
GunaPosted Jan 21, 2016, 12:09 AM
Sunil BharathPosted Jan 18, 2016, 10:25 PM
alert(divElements);
Rajeesh MenothPosted Jan 15, 2016, 1:57 AM
Rajeesh MenothPosted Jan 14, 2016, 6:18 AM
GunaPosted Jan 14, 2016, 5:36 AM
{
var originalContents = document.body.innerHTML;
var inpText = document.getElementsByTagName("input")[0].value;
var printContents = document.getElementById("<%= Panel1.ClientID %>").innerHTML;
printContents += inpText;
document.body.innerHTML = printContents;
window.print();
document.body.innerHTML = originalContents;
GunaPosted Jan 14, 2016, 5:27 AM
Rajeesh MenothPosted Jan 14, 2016, 5:21 AM