[Chartjs]-ChartJS not work in .php loaded by jquery .load() (AJAX)

3👍

Here is a working example of your code, i have removed the “onload” assignment, since you already have an document ready event that runs the whole thing. And moved out the function and data that doesnt need to be in there. Have a look and let me know if theres somehting you dont understand

 window.onload = function(){ //is removed

https://jsfiddle.net/L7zgL02w/2/

And also, you should load jquery.js before the other files (since your functions.js uses jquery)

Leave a comment