jquery - Adding a horizontal line in table using javascript -


i want draw horizontal thick line separating rows in report based on 1 column values. i.e., if previous , current value same want draw horizontal line. wrote jquery coding working fine in mozilla not in ie . mistake did make?

var = 1; $(".calbody tr td:nth-child(8) a").each(function() {     var foo = "<hr width=2000% ;'>";     if (a === 1) {         $(this).parents("tr:first").before(foo);     }     if (a != 1) {         var b = $(this).text();           if (a != b) {             $(this).parents("tr:first").before(foo);             }     }     = $(this).text();   }); 

try this

var foo = "<hr width='2000%'>"; 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -