Can someone explain why this is not working in IE and only in firefox. I believe it to be because of the if statement.
[code=php]function find(fi){
var table = document.getElementById(“incidenttable”);
var arr = table.getElementsByTagName(“tr”);
for (i = 0; i < arr.length; i++) {
status = arr[i].getAttribute(“class”);
arr[i].style.display = arr[i].style.display = “”;
if(status !== fi && status !== “rower”) {
arr[i].style.display = arr[i].style.display = “none”;
}
}
}
</script>
<h1 align=center>Incident Report Matrix – Online</h1>
<div align=”center”><table align=”center” id=”incident” width=”40%”>
<tr>
<td><input type=”button” onClick=”find(‘Application’)” value=”Application” /></td>
<td><input type=”button” onClick=”find(‘System’)” value=”System” /></td>
<td><input type=”button” onClick=”find(‘Network’)” value=”Network” /></td>
<td><input type=”button” onClick=”find(‘Store’)” value=”Store” /></td>
<td><input type=”button” onClick=”find(‘Other’)” value=”Other” /></td>
</tr>
</table></div>
<table border=1 style=”text-align:center” cellspacing=0 id=”incidenttable” cellpadding=0 width=”100%”>
<tr style=”font-weight:bold;” class=”rower”>
<td>Number</td><td>Date</td><td>System</td><td>Desc</td><td>Reported by</td><td>Impact</td><td>Status</td><td>Reason</td>
</tr>