Loop through data
Loop through data
jlcorry
Posts: 3Questions: 0Answers: 0
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