.load() and relative paths
问题 .load() is giving me trouble. I'm working on a section loader project and I just can't seem to fetch the file that I need. What I am trying to achieve : #sectionContainer is empty on document load, but on document ready it is 'filled' with Pages1.html . This is done by a JavaScript file sections.js . The JS file and the index.html are NOT in the same folder. Here is the site structure (I am running a lot of projects on my site) main folder Project 1 Project 2 (sectionLoaderTest/) index.html