I have the following code
var allRows = $('.myclass');
...
allRows.each(function() { //now search through all the rows
var className = this.attr("class");
...
});
I am getting an error message
Uncaught TypeError: Object #<HTMLDivElement> has no method 'attr'
What is wronte with my code? I did a console.log on the allRows and it is a jquery object.