1

When someone clicks a button, it opens up a jquery-ui popup window (dialog).

I need to add 'print' button on this popup, so someone can print out the contents of the popup dialog.

is this possible? how can i do this?

Blankman
  • 248,432
  • 309
  • 736
  • 1,161

1 Answers1

4

There are a few plugins for this, like jqPrint (demo here), you can just add a print button that calls that functionality, for example:

$("#dialog").dialog({
  buttons: { 
    "Print": function() { $("#dialog").jqprint(); },
    "Close": function() { $(this).dialog("close"); }
  }
});
Nick Craver
  • 610,884
  • 134
  • 1,288
  • 1,151