开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜