jquery - Javascript conditional table cell formatting failing in IE -
i've got table in time reporting application renders work group's time 2 week pay cycle before paychecks cut. time reported on weekly basis , formatting (red = not yet reviewed) let's group's approver see ones have been reviewed vs not @ glance.
the javascript below works charm in ff, not in ie. advice on how normalize it'll work in both?
function formattimetable() { var ttables = $(".timetable"); var celllocs = [1, 10] (var = 0; < ttables.length; a++) { var rows = ttables[a].getelementsbytagname("tr"); (var b = 1; b < rows.length; b++) { var cells = rows[b].getelementsbytagname("td"); (var c = 0; c < celllocs.length; c++) { if (cells[celllocs[c]].innerhtml == "no") { (var d = 0; d <= 7; d++) { var curcell = cells[celllocs[c] + d]; $(curcell).addclass("redtext") } } } } } }
Comments
Post a Comment