Friday, 23 August 2013

Trying to print the elements inside my div class

Trying to print the elements inside my div class

I have a div class:-
<div class="hidden">
<asp:Button ID="Button1" runat="server"
Height="23px" style="margin-top: 0px" Width="69px" text="Print"
OnClientClick="pharm_list(); return false;"/>
</div>
inside this div class, a list of elements are dynamically populated. I am
trying to use a print button inside this div class to print all elements.
using jquery.print.
<script type="text/javascript"
src="https://github.com/tanathos/jquery.jqprint/blob/master/jquery.jqprint-0.3.js"></script>
<script type="text/javascript">
function pharm_list() {
$('#hidden').jqprint();
return false;
}
But all this does is refresh my aspx page. even though I have added return
false statements. Can anyone point me to the right direction?

No comments:

Post a Comment