开发者

Jquery -Print Dialog Area :: Is exist plugin for printing jquery dialog content?

开发者 https://www.devze.com 2023-01-02 05:34 出处:网络
I don\'t know well jquery ui. Is exist plugin for printing jquery dialog 开发者_开发知识库content/somecode (Only print dialog content and not all webpage)

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消