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

here's how same table renders in both browsers:


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -