I have a javascript function that works in IE7, but is giving me trouble in Firefox.
JAVASCRIPT
function vehicleSelected() {
var ddlSelect = document.getElementById('ddlSelect');
var displayTable = document.getElementsByName('listTable')[0];
var strAuto = ddlSelect.options[ddlSelect.selectedIndex].value;
alert("ok, so far");
var rows = displayTable.getElementsByTagName("tr");
alert("this alert is not triggered");
var rowData = document.getElementById(strData);
for (var i = 0; i < rows.length; i++) {
rows[i].style.display = 'none';
}
rowData.style.display = '';
}
I am not sure how the rest of the code gets processed. Is there a universal way to toggle the display for a table row or do I need one for FIrefox separate?
EDIT
<table id="listTable">