My Code

Intenational Chemical Laboratory
Pune - 411008, India
(EPABX:+91(0)20-25902905, 25908901; Fax:+91(0)20-29902660)
REQUEST FOR HOUSE ACCOMMODATION
My Code

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Jan 16, 2024, 12:36 PM
Hello Mithun,
Please create jquery method to print div as below,
Mithun PradhanPosted Jan 16, 2024, 12:16 PM
My code
print window not open propper
need to like
open('', '', 'letf=0,top=0,width=800px,height=1000px,toolbar=0,scrollbars=0,Status=0');
Intenational Chemical Laboratory
Pune - 411008, India
(EPABX:+91(0)20-25902905, 25908901; Fax:+91(0)20-29902660)
REQUEST FOR HOUSE ACCOMMODATION
Incharge, Guest House
Vijay Pratap SinghPosted Jan 16, 2024, 11:05 AM
You can use JavaScript to create a function called printdiv() that will print the content of the "divPrint" section. Here's an example of how you can do it
Hope this will help
Naimish MakwanaPosted Jan 16, 2024, 11:04 AM
You can print a specific
divusing CSS and JavaScript. You can hide all other elements when printing by using a print media query. Here’s how you can do it:First, add this CSS to your stylesheet:
This CSS will hide everything on the page, except for the
divPrintdiv and its inner elements, when printing.Then, modify your
printDivfunction like this:Now, when you click the “Print” button, only the
divPrintsection will be printed. Please note that the actual printing will depend on the user’s browser settings and printer configuration.Thanks