Is there a way to make another button on the page, behave like the TableTools print button?
Is there a way to make another button on the page, behave like the TableTools print button?
I have a template page that has a print button. All it does is window.print(). The problem is that it only prints the two first pages of a report. I was wondering if I could, through jquery, make that button behave like the "Print" button from TableTools.
So far I've removed the href action and put the same class on that button, but it's not working.
$j("#btnPrint").removeAttr("href");
$j("#btnPrint").attr('class', 'DTTT_button ui-button ui-state-default DTTT_button_print');
Replies
$j("#btnPrint").click(function () {
$j("#ToolTables_DOETable_0").click();
I was hoping that this would work. But it didn't.