Loop through data
Loop through data
![jlcorry](https://secure.gravatar.com/avatar/baf83ea2b13d94d6f1be99732e8e80fe/?default=https%3A%2F%2Fvanillicon.com%2Fbaf83ea2b13d94d6f1be99732e8e80fe_200.png&rating=g&size=120)
What is the easiest/best way to loop through the table (v. 1.10)? I need access to the CSS classes, and to the data itself.
Pseudo code:
var array = [];
for each row {
if (!row.hasClass(x)) {
for each cell {
if (!cell.hasClass(x)) {
array.push(cell.value());
}
}
}
}
This discussion has been closed.
Replies
Using the
rows()
,cells()
andeach()
method:A better way is simply the following if you are just using class logic:
Allan