Monday, February 13, 2012

Print Using jquery

JQuery allows you to print the selected object, for this you need to use JQuery plug-in.

After adding JQuery plug-in you can use printing functionality of JQuery and you can easily print selected object in web page.

Now use this code-

 Method 1:

var printObject= $("#ControlName");

 Method 2:


In this example, I have used jqprint() method, which is inbuilt method defined in JQuery print plug-in. here “ControlName” is the name of control to which you want to print.


No comments:

Post a Comment