On select display another combo box not working for me???
Posted: Sun Jul 22, 2007 6:43 pm
Okay I give up. What I am trying to do is: when Company in the eligibilitytype combo box is selected it is meant to display select1 combo box. I have posted the code that I have been working with, below. Can someone please help me solve this problem? Thanks in advance.
Code: Select all
function dropdown1() {
var srcElement = document.getElementById('select1');
var a = document.getElementById('eligibilitytype');
if(a == "Company") {
srcElement.style.visibility = "visible";
} else {
srcElement.style.visibility = "hidden";
}
}Code: Select all
<select name="eligibilitytype" id="eligibilitytype" onchange="dropdown1();">Code: Select all
<select name="select1" id="select1" style="visibility: hidden">