js file conflict

js file conflict

hammad154hammad154 Posts: 1Questions: 1Answers: 0
edited February 2017 in Free community support

my problem is that i have like 2 (.JS) file in my layout, but both .js not work together.

  1. <script src="//cdn.datatables.net/1.10.7/js/jquery.dataTables.min.js"></script>
  2. <script type="text/javascript" src="https://cdn.datatables.net/v/dt/jszip-2.5.0/pdfmake-0.1.18/dt-1.10.13/af-2.1.3/b-1.2.4/b-colvis-1.2.4/b-html5-1.2.4/b-print-1.2.4/fc-3.2.2/fh-3.1.2/kt-2.2.0/r-2.1.0/sc-1.4.2/se-1.2.0/datatables.min.js"></script>

please help me how to solve this.

Edited by Allan - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • allanallan Posts: 63,852Questions: 1Answers: 10,519 Site admin

    I'm not sure why you would want to load both DataTables v1.10.7 and 1.10.13?

    Just load one of them. Ideally the newest.

    Allan

This discussion has been closed.