I have a web page that is basically a list of states, with information about each state. It's a very long page, so I put links to each state title at the top of the page, using anchors. Now, to take up less space at the top of the page, I want to put the anchor references in drop-down lists.
Using this, I get a drop-down box, but the selections don't take me to that part of the page (the anchors work without the drop-down list):
<select>
<option value = "#alabama">Alabama
<option value = "#alaska">Alaska
<option value = "#arizona">Arizona
</select>
Can someone tell me the Javascript I need to add to make these links work?
Thanks.
Using this, I get a drop-down box, but the selections don't take me to that part of the page (the anchors work without the drop-down list):
<select>
<option value = "#alabama">Alabama
<option value = "#alaska">Alaska
<option value = "#arizona">Arizona
</select>
Can someone tell me the Javascript I need to add to make these links work?
Thanks.