$("#link1").click(function(){
$("#div1").load('../test.html');
return false;
});
This is an incredibly simple .load() function that simply does not seem to be working. Website has a 'js' folder where this code is being called in 'my-scripts.js' (within a doc ready function), test.html is located one directory up from the js folder (the main website folder) yet clicking the anchor with the 'link1' id does nothing.
EDIT: I've tried taking out the '../' too, and still nothing.
EDIT: This is a local website using WAMP - It's a Wordpress theme I'm making, too if that helps.
FINAL EDIT: Turns out since test.html wasn't in the root directory (outside of the wordpress theme folder) it wasn't finding it... strange since everyone suggested it should be in the same location as the calling html/php file. Thanks everyone.
Apologies in advance for possible lack of information as it's my first post.
What could be the cause? Is the mark up correct? Thanks.
../will be relative to the current document, not the js file.file://url with this, correct?