Javascript print page

javascriptjqueryprinting

Hi I have a survey page(survey.aspx) with question and answers.
some of the answers have Radio buttons and check boxes.
This page has a print button. When the user clicks on the print button
another page(survey_print.aspx) opens up with the print content.
I have all the content Radio buttons and check boxes in the print page.
But how to show the checked Radio buttons and check boxes in the print page.
This has to be done using Javascript or jquery.
Any idea how this can be done.
Thanks in advance

Best Answer

As an alternative, you could use a print stylesheet on your survey page, eliminating the need for a separate survey_print.aspx.

By using a print stylesheet, you also gain the benefit of things working correctly if your user clicks their browser's print button (or presses Ctrl+P). You can just change your page's print button to call window.print().