Hello,
I am trying to conditionally show/hide options in a select list based on the choice in another list.
Unfortunately, the page I am using is a static system generated page and I can only add javascript to the header.
The format is:
<select name=”uniquename1″ id=”uniqueid1″>
<option selected =”select” value = “0”></option>
<option value=”100″>Text1</option>
<option value=”200″>Text2</option>
<option value=”300″>Text3</option>
</select>
<select name=”uniquename2″ id=”uniqueid2″>
<option selected =”select” value = “0”></option>
<option value=”1″>Conditionally show this</option>
<option value=”2″>Conditionally show and this</option>
<option value=”3″>Conditionally show and maybe this</option>
</select>
I have very little experience with javascript, but I understand basic programming concepts. Is this even possible? My difficulty was that I couldn’t figure out how to use OnChange() without being able to access that select element.
Any help would be great.
Thank you!