...

View Full Version : JS newbie needs help



jperkins98
07-10-2002, 01:07 AM
I need to figure out how to determine the value of the selected option in a dropdown select list. I am 99% clueless about javascript.

I've gotten this far:

document.myForm.mySelectName.selected.value

also tried:

document.myForm.mySelectName.option.value

AND

document.myForm.mySelectName.option.selected.value

but none of them seem to work.

Spookster
07-10-2002, 01:17 AM
document.myForm.mySelectName.options[document.myForm.mySelectName.selectedIndex].value



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum