Deepesh Uniyal Deepesh Uniyal - 4 months ago 31
jQuery Question

how to use pagination in bootstrap

I am using below code for pagination, which I have got from this link.
but it is not working for me.

<script src="//"></script>
<script src="//"></script>
<script src="//"></script>
<link rel="stylesheet" href="//">
<div id="content">Dynamic Content goes here</div>
<div id="page-selection">Pagination goes here</div>
// init bootpag
total: 10
}).on("page", function(event, /* page number here */ num){
$("#content").html("Insert content"); // some ajax content loading...

I am new in jquery. please check this once, and let me know the mistake I am doing.



The problem is that you can't directly link the jquery-bootpag JS file from github. Either upload it locally to your environment, or change the link to something like:

//, such that your imports look like this:

<script src="//"></script>
<script src="//"></script>
<script src="//" type="text/javascript"></script>
<link rel="stylesheet" href="//">