Click to See Complete Forum and Search --> : Pull Down Menu in Tables


akeith
08-01-2007, 01:52 PM
I have six pulldown menus in one table and five of the menus are pulling the info from the first menus instead of what I put under <option value>

Detect
08-01-2007, 02:47 PM
That sucks :(

Btw, what's the question? j/k, code?

akeith
08-01-2007, 04:14 PM
This is the code I am using in each table cell. I am also not pleased with the "select cham/craw" because it links to a white screen when clicked. If you could suggest better script to use that would be great!

Thanks



<script type="text/javascript">
function go()
{
window.location=document.getElementById("menu").value
}
</script>
<form>
<select id="menu" onchange="go()">
<option>--Select CHAM/CRAW--</option>
<option value="CHAMPAIGN.HTML">Champaign</option>
<option value="CHRISTIAN.HTML">Christian</option>
<option value="CLARK.HTML">Clark</option>
<option value="CLAY.HTML">Clay</option>
<option value="COLES.HTML">Coles</option>
<option value="CRAWFORD.HTML">Crawford</option>
</select>
</form>

Detect
08-01-2007, 04:25 PM
Select boxs have a weird way to access it's value. The conditional is to check for that no value option (white page).


function go()
{
var menu = document.getElementById("menu");
var x = menu.options[menu.selectedIndex].value;
if(x != '')
{
window.location=x;
}
else
{
alert('select an option fool!');
}
}

akeith
08-06-2007, 03:57 PM
Thanks :) :) :)