I have rows generated in a table dynamically. I am getting the data for the dynamic rows by ajax calls. This loading of dynamic rows is happening at the time of page load. I am not able to access this dynamic data using Jquery. To be specific, I need to iterate through all the rows in the table.Is there a good way to accomplish this?
Also There is no event like button click to load the data. The data is loaded at the time of page loading.
$.ajax({
type: "POST",
url: serviceUrl,
contentType: "application/json",
data: ko.toJSON(getevent),
dataType: "json",
success: function (data) {
$(".childrenrow").each(function(){ //.childrenrow are the dynamically generate table rows
alert("Here"); //This part is not getting exeucuted
//I am planning to check for the the existence of data.children in each .childrenrow once the loop is entered
});
},
error: function () {
}
});