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")); 
});

Leave a Reply

avatar
  Subscribe  
Notify of