Reload Page Content - Jquery

How to reload content in the page using jquery code?

Snippet Code

Rate this page :
  [ 0 votes]

Here reload() function is used to reload the content in the page without refreshing it. Give the link to be reloaded inside the function load () and content to be reloaded inside the div.

<script type="text/javascript"> function reload() { $("#content").load("test.php?page=1") } </script> <div id='content'><?php if(isset($_GET['page']))echo $_GET['page'];?></div> <input type='button' value='Reload' onclick='reload()' >


Ask Questions

Ask Question