I am loading data of HTML table dynamically from Jquery.
$(document).ready(function () {
for (var i = 0; i < StudentsList.length; i++) {
LoadRow(StudentsList[i]);
}
});
function LoadRow(student) {
setTimeout(function (student) {
$("#tbl tbody").append("<tr class='trStyleSummary'><td>" + student.Name + "</td></tr>");
}, 1000);
}
I want the table to load rows one by one with delay.
How do I do that? I tried SetTimeout
with 1sec, But for some reason, its not working. The table is loading entirely after 1 second.