jQuery.addClass not adding a class
Posted
by John Nolan
on Stack Overflow
See other posts from Stack Overflow
or by John Nolan
Published on 2010-04-16T16:07:25Z
Indexed on
2010/04/16
16:13 UTC
Read the original article
Hit count: 282
jQuery
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?
© Stack Overflow or respective owner