Hi,

Someone gave me this code which is executed when the submit button is clicked. As you can see I have a dropdown menu called "lstcountry "which is filled with Country names.

How can I change this code to return the TEXT VALUE of what was selected and NOT the index/no.

As it is now, it returns "1" when AUSTRALIA is selected, but I want it to return "AUSTRALIA".

Another question is..
what is the equivalent of response.write in javascript. Reason for asking is because I want to debug this code so when it enters this I want it to do a response.write lstcountry, but the javascript equivalent of that!!

<head><script language="javascript">

function redirectpage()
{
if(document.frmcountry.lstcountry.options[document.frmcountry.lstcountry.selectedIndex].value == 0)
{
document.frmcountry.action = "city.asp";
document.frmcountry.submit();
}
else
{
document.frmcountry.submit();
}

}

</script>