I am going around the bend trying to get a return value from a dropdown so that I can use else where on an asp page, it gives the alert ok, however I cannot seem to do anything else useful with it. Any help would be extremely appreciated!!! ...Ian
<code>
<html>
<head>
<title>page</title>
<script language="javascript" >
function alertselected()
{
alert(document.test.prodquantity.selectedIndex)
nbrQty = (document.test.prodquantity.selectedIndex)
}
document.write("<form name='test'>")
document.write("<select name='prodquantity' onChange='alertselected()'>")
document.write("<OPTION value='1' SELECTED>1")
document.write("<OPTION value='2'>2")
document.write("<OPTION value='3'>3")
document.write("<OPTION value='4'>4")
document.write("<OPTION value='5'>5")
document.write("<OPTION value='6'>6")
document.write("</SELECT></form>")
document.write("<p>" + nbrQty)
</script>
</body>
</html>
</code>