jQuery.addClass not adding a class
- by John Nolan
Just why is my style not being applied in the jquery below. It aslo only adds the table in FireFox
$.each(data.AdvisorPerformances, function(i) {
$("#advisorPerfomance").append("<tr>" +
"<td>" + data.AdvisorPerformances[i].Advisor +
"</td>" +
"<td>" + data.AdvisorPerformances[i].PackInCount +
"</td>" +
"<td>" + data.AdvisorPerformances[i].PacksInValue +
"</td>" +
"<td>" + data.AdvisorPerformances[i].PacksOutCount +
"</td>" +
"<td> " + data.AdvisorPerformances[i].PaymentsInCount +
"</td>" +
"<td>" + data.AdvisorPerformances[i].PaymentsInValue +
"</td>" +
"</tr>");
});
$("#advisorPerfomance").append("</table>");
$("#advisorPerfomance").addClass("NOTAPPLIEDSTYLE");
Also is there a better way to add a table?