JS quickie...

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

    JS quickie...

    i have a pulldown with some items on it and a text field. user can either
    select from the pulldown, in which case i would like to clear and disabeld
    the text field, or enters text into the text field, in which case i like the
    pulldown to be re-set to "<Select One Please>" the first item in the
    pulldown list.

    can someone please help ? I am a neeeeeeeewwwwwb eeeeeeeeeeee

    thanks in advance


  • Michael Winter

    #2
    Re: JS quickie...

    On Thu, 15 Apr 2004 07:57:59 -0400, Mel <mehra.heravi@s sa.gov> wrote:
    012345678901234 567890123456789 012345678901234 567890123456789 012345678912[color=blue]
    > i have a pulldown with some items on it and a text field. user can
    > either select from the pulldown, in which case i would like to clear and
    > disabeld the text field, or enters text into the text field, in which
    > case i like the pulldown to be re-set to "<Select One Please>" the first
    > item in the pulldown list.[/color]

    I wrote this a while ago in response to a question on this group. You
    should supplement this with server-side checks as a user with JavaScript
    disabled will end up submitting both controls.

    <URL:http://www.mlwinter.pw p.blueyonder.co .uk/clj/combo.html>

    Mike

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

    Comment

    Working...