I have posted a thread in PHP section http://www.sitepoint.com/forums/showthread.php?t=737982
I need to print one form from Multiple forms in one page
I am planning to make a page which will contain 6 receipt form. [Six form in One page]. When the form filled up, then jQuery Ajax will submit the form without reloading the page, and there will also be 6 different button to print each individual form.
N.B. One person give a hints that, I need 6 id with 6 listener. I need little more detail guideline.
I actually need to make option for mutiple print option [for each form, individually] in one page.
Your given link is only a for Form plugin.
Thanks for your time.
That could most easily be done by applying a different CSS print stylesheet, depending on which form you want the print stylesheet to display.
give six unique ids for forms and when click on print button create a print window, write html content related print area, print this window and close.
here is the sample code i have created in my page
call the below function on print button click by passing unique id
html+="<link rel='Stylesheet' type='text/css' href='css/print.css' media='print' />";
var printWin = window.open('','','left=0,top=0,width=1,height=1,toolbar=0,scrollbars=0,status=0');
Thanks a lot. I am going to try it soon.