Simple Navigation Bar Drop-Boxes; but only one works. Why? Very odd...watch video.
As the title states, I've been playing with adding simple, more options to sites through these drop boxes along my Navigation Bars for each domain as they may need to apply. However, when using the same style drop-box, only one per page seems to work...and the others go "bad" (or shall I say - they just don't "work") for a reason I cannot figure. Feel free to watch the video and check out the simple script (below) and share your thoughts.
Drop-box script along (very simple example, used in video):
<td rowspan="3"><div align="center">
<select name="Pick an Website" size="1" id="pick" title="Website Options">
<option value="#">Pick website</option>
<option value="http://www.google.com">google</option>
<option value="http://www.yahoo.com">yahoo</option>
</select>
<script>
document.getElementById("pick").onchange = function() {
if (this.selectedIndex!==0) {
window.location.href = this.value;
}
};
</script>
