I am a newbie to javascript and jquery. I try to test my html locally. I can work with code properly as below.
<html>
<head>
<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
$("div").load('test1.txt');
});
});
</script>
</head>
<body>
<div><h2>Let AJAX change this text</h2></div>
<button>Change Content</button>
</body>
</html>
But, when I put the text 'http://www.w3schools.com/jquery/test1.txt' instead of 'test1.txt', the button cannot work properly. Please help.
Regards,
Tommy