Print specific part of webpage

Posted by Grega Menih on Stack Overflow See other posts from Stack Overflow or by Grega Menih
Published on 2012-10-21T10:44:28Z Indexed on 2012/10/21 11:00 UTC
Read the original article Hit count: 152

Filed under:
|
|

I'm trying to print a specific part of my application.

The application has a list of users, displaying their first and last name. When I click a user I get a popup with more detailed information about them.

How would I go about printing just the popup for a user I clicked? The popup looks like this:

 <div id="user<?=$user->id;?>" class="popup">
      <div class="details">
           User details...
      </div>
      <a href="#print">Print</a>
 </div>

The print button isn't working yet though.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html