Loop through each tr in table excluding header tr


 
$("table tr").each(function(){ 
    alert($(this).attr("customAttr")); 
}); 
 
Above code will iterate through each tr,but if we want to exclude header tr via jQuery then use the following set of lines: 
  
$("table tr").not(":first").each(function(){ 
    alert($(this).attr("customAttr")); 
});
0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments