Hi i m using the code below to read text file content. The text "Let jQuery AJAX Change This Text"
doesnt change at all. I have tried ..
$("#div1").load("file:///C:/demo_test.txt #p1");
$("#div1").load("demo_test.txt #p1");
$("#div1").load("C:/demo_test.txt #p1");
Please help.
Thanks
-------------------------------------------------
<!DOCTYPE html>
<html>
<head>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#div1").load("file:///C:/demo_test.txt #p1");
});
});
</script>
</head>
<body>
<div id="div1"><h2>Let jQuery AJAX Change This Text</h2></div>
<button>Get External Content</button>
</body>
</html>
</html>