Copying Value from List to Hidden Field

Discussion in 'HTML' started by Keith, May 13, 2004.

  1. Keith

    Keith Guest

    Is there any script (javascript etc.) that I can use to copy the value that
    a user selects in a Drop Down Menu on my page into a hidden form field on
    the same page?
     
    Keith, May 13, 2004
    #1
    1. Advertising

  2. Keith

    Sid Ismail Guest

    On Thu, 13 May 2004 09:44:20 +0100, "Keith" <@.> wrote:

    : Is there any script (javascript etc.) that I can use to copy the value that
    : a user selects in a Drop Down Menu on my page into a hidden form field on
    : the same page?
    :


    My my, why ever do you want to do that?

    Sid
     
    Sid Ismail, May 13, 2004
    #2
    1. Advertising

  3. On Thu, 13 May 2004 09:44:20 +0100, Keith <@.> wrote:

    > Is there any script (javascript etc.) that I can use to copy the value
    > that a user selects in a Drop Down Menu on my page into a hidden form
    > field on
    > the same page?


    Yes, you could do it, but there isn't a good reason to do so. Just give
    the drop down menu/combo box form element the name of the hidden form
    element, and scrap the hidden form element altogether.

    --
    Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
     
    Foofy (formerly known as Spaghetti), May 14, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rick
    Replies:
    3
    Views:
    8,482
    Alexey Smirnov
    Apr 13, 2010
  2. GavMc
    Replies:
    4
    Views:
    366
    Evertjan.
    Sep 22, 2005
  3. Roy Adams

    writing from hidden field to text field

    Roy Adams, Dec 20, 2004, in forum: Javascript
    Replies:
    1
    Views:
    215
  4. Replies:
    6
    Views:
    216
  5. jr
    Replies:
    3
    Views:
    469
Loading...

Share This Page