Question

I don't know well jquery ui. Is exist plugin for printing jquery dialog content/some code (Only print dialog content and not all webpage)

Thanks

Was it helpful?

Solution

You can use the jqPrint plugin for this, and you can try a demo here.

Usage is pretty simple:

$("#dialog").jqprint();

This opens the print dialog and you're all set. In case you're wondering about the internals, you can see the script here, it makes an <iframe>, copies your content over and triggers a print on it. This isn't jQuery UI specific at all, just use the same selector as you use to define the dialog (or another, whatever you want to print!) and that's it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top