Web Analytics Made Easy -
StatCounter JS newbie needs help - CodingForum

Announcement

Collapse
No announcement yet.

JS newbie needs help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • JS newbie needs help

    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.

  • #2
    document.myForm.mySelectName.options[document.myForm.mySelectName.selectedIndex].value
    Spookster
    CodingForum Supreme Overlord
    All Hail Spookster

    Comment

    Working...
    X