Trying for last 2 days datatable not working
Trying for last 2 days datatable not working
malayaleekart
Posts: 1Questions: 1Answers: 0
pagination is not cming on the table named "example"
<script type="text/javascript" charset="utf8" src={% static "/js/bootstrap.bundle.min.js" %}></script>
<script src={% static "js/bootstrap.js" %}></script>
<script src={% static "js/main.js" %}></script>
<link rel="stylesheet" type="text/css" href={% static "/datatables.css" %}>
<link rel="stylesheet" type="text/css" href={% static "/css/bootstrap.min.css" %}>
{% comment %} <script type="text/javascript" src={% static "js/paging.js" %}></script> {% endcomment %}
<script type="text/javascript">
$(document).ready(function() {
alert("hi");
$('#examples').paging({limit:5});
});
</script>
This discussion has been closed.
Answers
Not sure what paging.js is but if its this then that is not a Datatables library and you will need to ask for help from the developer:
http://bvjebin.github.io/paging.js/
Are you trying to use Datatables? Here is a basic example:
https://datatables.net/examples/basic_init/zero_configuration.html
Kevin
Also, your post refers to table "example" but your code shows "examples".