Hi
I'm trying using Jquery and Jsp page to create GUI , it's simple . here is my code,
in my folder, I create a
Javascript library file , which contain
jquery-1.8.3.js. So, when I click <button>Get External Content</button> it will display content in
demo_test.txt ,but it didn't . Can you help me??
<!DOCTYPE html>
<html>
<head>
<script language="javascript" src="
Javascript/jquery-1.8.3.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").load("demo_test.txt");
});
});
</script>
</head>
<body>
<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>
</body>
</html>