0
I’m trying to use this plugin here botepage
the problem is that I am not able to insert any content inside the Divs, on page 1 for example say I want to put "hello", on page 2 say I want to put "hi" as I do to assign page 2 to div two, page 1 to div one, and so on??
follows my code
<script>
// init bootpag
$('#page-selection').bootpag({
total: 10,
page: 1
}).on("page", function(event, /* page number here */ num){
$("#content").html("page" + num ); // some ajax content loading...
});
</script>
<div id="content">
<div id="um">
<h1>ola</h1>
</div>
<div id="dois">
<h1>oi</h1>
</div>
</div>
<div id="page-selection">Pagination goes here</div>
and here is the result of that code on my website
as you can see the two Ivs, appear at the same time instead of the div one, appear on page 1 and the div two appear on page 2