<html>
<head>
<script type="text/javascript" src="jquery-1.7.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
$("div").load('txt.txt');
});
});
</script>
</head>
<body>
<div><h2>Example of change thye Text In JQuery</h2></div>
<button>Click Me To Change The Content</button>
</body>
</html>
Output:

After we click on the button:


Join the conversation! Your thoughts help the community grow.