I am having some problems in figuring out how to transverse multiple select tags that contain multiple option tags.
For example
The onChange event basically clears the other values in the other select tags so that only one select tags has a value (not working). The onClick event, when the button in click, sends the information to a javascript which will determine what the value of the selected tag is. There should be only one value. I am having problems if figuring out the for loop to get to the answer. I keep getting a "value is not an object or Null error".
Any suggestions in getting me started would be appreciated. Been tring to figure this out all day. I would prefer putting everything into an array then I could use a for loop to handle this because each select tag contains many options.
TIA
Mike V.
For example
Code:
<form name=form action="" method=post>
<select name=selName onChange="clrSelect(selName)">
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
</select>
<select name=selName onChange="clrSelect(selName)>
<option value=a>a</option>
<option value=b>b</option>
<option value=c>c</option>
</select>
<select name=selName onChange="clrSelect(selName)>
<option value=x>x</option>
<option value=y>y</option>
<option value=z>y</option>
</select>
<input type=button onClick="go(this.form)" value=Search>
</form>
Any suggestions in getting me started would be appreciated. Been tring to figure this out all day. I would prefer putting everything into an array then I could use a for loop to handle this because each select tag contains many options.
TIA
Mike V.