onChange does not execute when original value selected.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mike

    #1

    onChange does not execute when original value selected.

    Am I correct in assuming that when the starting value of a select list
    is re-selected, the onChange command does not execute?

    I need to have it execute when the original value is selected if
    possible.

    --
    Mike
  • Lee

    #2
    Re: onChange does not execute when original value selected.

    mike said:[color=blue]
    >
    >Am I correct in assuming that when the starting value of a select list
    >is re-selected, the onChange command does not execute?
    >
    >I need to have it execute when the original value is selected if
    >possible.[/color]

    Many people add a dummy first value to select lists, with text like:
    "Choose one..."

    That ensures that selecting any real value will fire the onChange
    event.

    Comment

    • Michael Winter

      #3
      Re: onChange does not execute when original value selected.

      On 2 Mar 2004 08:25:10 -0800, mike <knichel@cairod urham.org> wrote:
      [color=blue]
      > Am I correct in assuming that when the starting value of a select list
      > is re-selected, the onChange command does not execute?
      >
      > I need to have it execute when the original value is selected if
      > possible.[/color]

      Then use onclick. onchange will only fire when the value is *changed*,
      surprisingly enough :)

      Mike

      --
      Michael Winter
      M.Winter@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)

      Comment

      Working...