I am trying to load some content inside a div #display
. I have read many questions regarding this matter here, but still I have been unable to get it working. The alert
function which I have just added for testing purpose works without any problem.
Here is what I have tried
$(document).ready(function(){
$('#townships').click(function() {
$('#display').load("helloworld.html");
alert("Hi");
});
});
I am trying this offline. The helloworld.html
file is in the same folder with the homepage file.