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
Post a Comment