printarea function not working

Posted by daljeet on Stack Overflow See other posts from Stack Overflow or by daljeet
Published on 2012-06-30T07:55:37Z Indexed on 2012/06/30 9:16 UTC
Read the original article Hit count: 511

Filed under:

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();" />?

© Stack Overflow or respective owner

Related posts about jQuery