I can't make the delay function of jQuery works with append
function. What is wrong? Is there a way to make it work? I want to avoid using setTimeout
directly to make it more easy to follow for the customer, who will maintain it himself, without any experience.
My code:
$('#chatwindow').append('test').delay(2000).append('test');
In this code, I get 'testtest' printed at the same time, delay
is ignored.