Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

102
Views
Printing button is also Printed during printing Document

I have created JS Code for Printing Single Id's . When ever i try to Print Document Print button is Also comes in Preview. i tried Every Possible Solution But nothing Is Worked

i tried

@media print {
  .noprint {
    visibility: hidden;
  }
}

But No Results

Here Is My js code

        function bookListPrintOnlyId(bookid) {
        
        var popupWin = window.open('', '', 'width=700,height=700');
        popupWin.document.open();
        popupWin.document.write('<html><head><title></title>');
        popupWin.document.write('<link href="{$resourcePath}assets/css/customprint.css" rel="stylesheet" type="text/css" />');
        popupWin.document.write('</head><body ><div id="printabelDivOutput" class="printabelEquipmentsDivOutput"><table class="table table-striped table-bordered table-responsive"><thead class="table-vertical-header" style="height: 56px;"><tr><th style="width: 130px;" class="text-center"><span class="header-cell">Equipment ID</span></th></tr></thead><tbody>');
        popupWin.document.write('<tr><td class="text-center">'+bookid+'</td></tr>');
        popupWin.document.write('<tr><td class="text-center"><button onclick="window.print()" class="noprint">Print</button></td></tr>');
        popupWin.document.write('</tbody></table></div></body></html>');
        popupWin.document.close();
    }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!