Dos data table en la misma vista

Dos data table en la misma vista

jeiyanajeiyana Posts: 8Questions: 3Answers: 0

Saludos,

Tengo dos data table en una misma página y sucede que, al entrar por primera vez a la página, los data tables no cargan, pero recargo la página y en ese momento si cargan los data table.

Qué puedo hacer en este caso?

http://live.datatables.net/jewaqope/1/edit

Answers

  • kthorngrenkthorngren Posts: 21,173Questions: 26Answers: 4,923

    You are getting some errors in the browser's console:

    Uncaught SyntaxError: Unexpected token '<'

    This is specific to this environment but you have a script tag in the Javascript section. I removed that.

    Uncaught TypeError: $(...).select2 is not a function

    You need to include the select2.js. I commented this line:

    $('.js-example-basic-multiple').select2(); 
    

    Add the select3.js CDN if you need it to replicate the issue. Both tables now load.
    http://live.datatables.net/jewaqope/3/edit

    Kevin

This discussion has been closed.