79305241

Date: 2024-12-24 09:38:17
Score: 0.5
Natty:
Report link

The problem was with DataTables initialization hierarchy in html page! my functions printCheckboxStatusDom(), printCheckboxStatusTbl() and $(document).ready(function(){...}) was stored in a javascript file my_scripts.js in a local dir, and the current page was like

    {% include 'my_tbl_template.html' %};
    <script>let my_tbl=$('#my_tbl').DataTable({...})</script>
    <script type="text/javascript" src="my_scripts.js">

so I tried to to change the code to (init datatables at the end):

    {% include 'my_tbl_template.html' %}
    <script type="text/javascript" src="my_scripts.js">
    <script>let my_tbl=$('#my_tbl').DataTable({...})</script>

And the problem solved!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bill Choi