Click here to Skip to main content
15,885,001 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I am loading the Jquery plugin but am getting an error in firebug (or console panel)saying that:
HTML
TypeError: $(...).pagination is not a function


This is the code am using:
ASP.NET
 <link href="css/jqpagination.css" rel="stylesheet" />   
    <script src="//code.jquery.com/jquery-1.10.2.min.js"></script>
    <script src="js/jquery.jqpagination.js"></script>
    <script src="js/scripts.js"></script>
    <script type="text/javascript">
        $(function () {
            $('div').pagination();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <p>A</p>
            <p>B</p>
            <p>C</p>
            <p>D</p>
            <p>E</p>
            <p>F</p>
            <p>G</p>
            <p>H</p>
            <p>I</p>
            <p>J</p>
            <p>K</p>
            <p>L</p>
        </div>
    </form>
</body>
Posted
v2

Refer- jqPagination[^].

The function is jqPagination() not pagination().
 
Share this answer
 
Hi ElDev,

So you are trying to include pagination in your page, fine.
Are you using jqPagination.js for pagination?
If then you should change pagination() method to jqPagination() like this

JavaScript
$(function () {
$('#divID').jqPagination(); //selector is also wrongly mentioned
});


XML
<body>
<form id="form1" runat="server">
<div id="divID">
<p>A</p>
<p>B</p>
<p>C</p>
<p>D</p>


Hope this helps you a bit.

Regards,
RK
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900