Ok I have following data:
id|name |class |attendance
1|Jane | 'One' | 14
2|John | 'One' | 0
3|Jude | 'One' | 4
My code is
$(document).find('.class, .attendance').each(function(){
if(get class.text == 'One' && attendance >0){
//do something
}else{
//do something
}
});
What I am unable to do is, how to get get class and attendance data of same row and do the condition.