Okay, so I'm writing some Javascript for a simple effect: when a drop down gets selected, a series of options will appear, depending on which one is chosen. This works great in Firefox, but when I went to test it on Internet Explorere, things weren't so pretty. It failed with, what is oh so helpful, and unknown runtime error. So, here is the HTML (simplified) for the setup. Pretty simple stuff:
<form>
<ul>
<li>
<label class="description" for="request_type">Type of request </label>
<div>
<select onchange="vrf.VRDescChange(this.value)" name="request_type">
<option value="" selected="selected"></option>
<option value="Business Trip">Business Trip</option>
</select>
</div>
</li>
<span id="otheroptions">
<li>
<input type="text" id="Name"></input>
</li>
</span>
</ul>
</form>
A note: "vrf" is properly instantiated. When the page loads, the "otheroptions" span is hidden, until something gets selected from the "request_type" drop down. So, here is the code for the Javascript (again, simplified):
VRFunctions.prototype.VRDescChange = function(value) {
if (value === "Business Trip") {
document.getElementById("otheroptions").style.display = "block";
}
}
As you can see, I'm using Prototypes for the Javascript. Could this have something to do with it? Any elightenment would be most helpful.