Thursday 13 July 2017

How to page reload in ajax and jquery in php

How to page reload in ajax and jquery in php

<div id="manjeet"></div>

<script type='text/javascript'>

 function autoRefresh_div()
 {
      $('#manjeet').load('get_data.php');// a function which will load data from other file after x seconds
  }
  setInterval('autoRefresh_div()', 5000);

</script>

No comments:

Post a Comment