here is my table: http://i.stack.imgur.com/sFwZR.jpg
Here i have a table and i need to hide all rows (tr), where Course (table's td) is 2 (for example), and left other rows. And second case is to left all exept where course is 2 (for example). Please, can you suggest me how to do it correct?
This Should work fine..
$('#yourTableID tr').each(function(){
if($(this).find('td:eq(1)').text().trim()=='2'){
$(this).hide();
}
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.