I am trying to implement Bootstrap's pagination feature into my project.
While I was able to find the HTML code for it on the official Bootstrap page, I am struggling to make the content change dynamically when I move to the next page. Can anyone provide guidance on how I can achieve this functionality?
<div class="card" style="width: 18rem;">
<img src="https://robohash.org/88.130.49.243.png" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Card Text.</p>
</div>
</div>
<div class="customPagination flexCenter mt-2">
<nav aria-label="Page navigation example">
<ul class="pagination">
<li class="page-item">
<a class="page-link bg-transparent" href="#" aria-label="Previous">
<span aria-hidden="true"><</span>
</a>
</li>
<li class="page-item active"><a class="page-link" href="#">1</a></li>
<li class="page-item"><a class="page-link" href="#">2</a></li>
<li class="page-item"><a class="page-link" href="#">3</a></li>
<li class="page-item">
<a class="page-link bg-transparent" href="#" aria-label="Next">
<span aria-hidden="true">></span>
</a>
</li>
</ul>
</nav>
</div>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>