// I have a table (#tbLog) and rows (tr) contain class record. $('#tbLog').find('tr.record').each(function(){ console.log('Row with class',$(this).attr('class')); });