Call the doSomething() function every two seconds:

setInterval(doSomething, 2000);

function doSomething() {
  // do something
  $('#myDiv').append('<div>Jack (12:23pm) - a/s/l?</div>');
}

On Feb 23, 9:35 am, Coder <[email protected]> wrote:
> Hello all  group member
> sorry if this post  Contrary to the laws
> but this my first topic hear
>
> I'm looking for JQuery Rule to update div content every X second for
> example 2sec
> i'll use it for script like live chat
>
> can some one help me ?
>
> sorry for bad English

Reply via email to