I use a script that I actually got from a user here, that allows me to hide and reveal a div when you click on a link. This has been very useful, and I was wondeing if there was a way to do this with a dropdown menu as well. So if I wanted to show infrmation based on a state, so to speak, is there a way that I could use JavaScript to reveal the “Alaska” content when i select Alaska from the drop down menu?
Thanks in advance, and here is the script that I have been using:
<a href="javascript:;" onclick="document.getElementById('mystate').style.display = (document.getElementById(mystate).style.display == 'none') ? 'block' : 'none'">
Click me to reveal my state information</a>