How to load content using Ajax PHP and jQuery

To load content dynamically from server you can use load() of jQuery.


<script>

jQuery(document).ready(function(){

$( "#result" ).load( "test.txt" );

});

</script>

<script>

$( "#result" ).load( "test.txt", function() {
alert( "Load was performed." );
});

</script>

<div id="result">

</div>

Leave a Reply