Discussion:
JQPRINT - Need help!!
Erik
2010-02-23 16:52:04 UTC
Permalink
has anyone used JQPRINT?

I know it looks really simple, but how do you call the function with a
link?

Erik
Fabio Balossi
2010-02-25 16:21:48 UTC
Permalink
argh, i send the answer only to the author.

well for anyone else :

you have to set an ID to the A element, the same ID of the function's
trigger, then set a class .toprint fot the elements to print, finally
set to the jqprint function a Click calling action

for example:

...
<div class="toprint"> elements to print </div>
...
<a href="#" id="print">PRINT</a>
...

<script type="text/javascript">
$("#print").click( function() {
$('.toprint').jqprint();
});
</script>

whising i did not mistake (with my english or typewriting)

Shaz
Post by Erik
has anyone used JQPRINT?
I know it looks really simple, but how do you call the function with a
link?
Erik
Loading...