SyntaxFix
Write A Post
Hire A Developer
Questions
This is the correct way:
To execute code that will only be available to the index page, we could use this syntax:
$(document).on('pageinit', "#index", function() { ... });