Just as a matter of interest, I have now converted another small project to PHPMaker 2020.0.4 and I seem to have a similar problem where the JQuery code stopped functioning/working in PHPMaker 2020 builds, however the exact same code works just fine in previous PHP Maker version's builds (i.e. PHPMaker 2019 and before).
jQuery code stopped functioning/working
-
- User
- Posts: 9406
From the help file (see the topic Server Events and Client Scripts > Page_Head):
Note: PHPMaker (v2020) uses loadjs to load JavaScripts and stylesheets, you can use loadjs() and loadjs.ready() functions in your script tags.
So you should use:
loadjs.ready("load", function() {
// your code
});