printarea function not working
- by daljeet
I am trying to print a particular area on my webpage by using jQuery printarea() function. It doesn't work and returns an error.
Error
return (media.toLowerCase() == "" || media.toLowerCase() == "print")
jQuery
function printDiv() {
$('#dvTokenArea').printArea();
}?
<div id="dvTokenArea" runat="server">
<asp:Label ID="lblTokenNumber" runat="server" Text="Print ME !!!!!!!!!!!!"> </asp:Label>
</div>
<asp:Button ID="btnPrintToken" runat="server" Text="Print"
OnClientClick="javascript:printDiv();" />