[eluser]rwestergren[/eluser]
[quote author="rangana" date="1281038947"]what i meant was i need to take a hard copy of the registration form, now we can put a print button there, how to code to that button? that was my question? how to perform a printout by pressing a button, how to code to the button it self to get out a print out?[/quote]
Coding a button to print the current page? You can bind a jQuery click event to the button and have it print like this:
Code:
$(document).ready(function()
{
$('#button1').click(function()
{
window.print();
});
}