Hi,
I’m using the following to toggle rows in a form:
[CODE]
function toggleDatePref()
{
var block1 = document.getElementById(“entrynotice”);
var block2 = document.getElementById(“datepref”);
var block3 = document.getElementById(“timepref”);
var block4 = document.getElementById(“athome”);
var determinant = document.getElementById(“presentforservice”);
if(determinant.getValue() == “Yes”)
{
block1.style.display = “none”;
block2.style.display = “table-row”;
block3.style.display = “table-row”;
block4.style.display = “table-row”;
}
else
{
block1.style.display = “table-row”;
block2.style.display = “none”;
block3.style.display = “none”;
block4.style.display = “none”;
}
}
toggleDatePref();
In the code above, “presentforservice” is the id of a select box containing the values “Yes” and “No”. Firefox uses this script just fine, but IE gives me the following error:
[QUOTE]
Line: 313
Char: 2
Error?bject doesn’t support this property or method
Code: 0
[URL excluded from this post for security]
Is this a problem with the way that IE works with DOM? What’s going on?