How to Refresh a Div by Jquery? -


i need refresh div in page jquery

<? if($post['id']) :?> <script>     refresh script </scriptt>  <?php ednif;?>  <div class="refresh-div">            <span> dynamic content </span> </div> 

i'm still not entirely sure looking for, based on comments on question, want this:

$(".refresh-div").load("somescript.php"); 

that simplest form the jquery load function, loads whatever returned somescript.php element class="refresh-div", replacing whatever there before.

you can more load function if necessary (like pass in data, , callback function), more information suggest reading load section in jquery api.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -