Results 1 to 2 of 2

Thread: how do i get selection?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Posts
    98
    ok...i have this code:

    <option value=\"03\">March</option>

    the name of my form is "NEWS." the name of my combo box is "MONTH." when i set the variable 'date' equal to document.NEWS.MONTH.value i get "03." this is correct. however, this is not what i want. what i want to be placed in that variable is the name of the month. i have tried things like document.NEWS.MONTH.text, document.NEWS.MONTH.selected, etc. what is the correct syntax that will return the selection? thanks in advance. this is a pretty important question so any help would do.

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    This might seem like a stupid question but exactly what are you using? If you mean a select list try this:
    x.options[i].text
    Hope that helps.
    "People who think they know everything are a great annoyance to those of us who do."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width