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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -