html5 - Add html asynchronously -
i want add new html in page asynchronously like
$.each(programlistall, function (j, inneritem) { programhtml = '<div class="row"><ul>'; $("#programlist").append(programhtml); });
it should show user html adding asynchronously. how can achieve this?
you have little delay in adding items, code this:
var $programhtml = $('<ul class="row"></ul>'); $('#programlist').append($programhtml); var delay = 1000; $.each(programlistall, function (j, inneritem) { $programhtml.delay(j * delay).append('<li'> + inneritem + '</li>'); });
Comments
Post a Comment