php - My page repeats its header and other divs when using jquery code for automatic updates for a particular div -


I have recently learned- using Zacry refreshing auto on my page. My code looks.

  setInterval (function () {$ ("# aaa"). Load (location.href + "# aaa> *", "");}, 10000); // seconds to wait, millisecond   

I want to update automatically where there is #aaa div. But what happens when I apply this code - My navigation bar repeats itself and the other one on the same page Any suggestions?

You probably can not leave any location between the URL and the Diva selector in your load argument. $ ("#result") is an example to load pieces of the page from .load ("ajax / test.html #container")



Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -