SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Guess where ?
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Copy the selected list value..

    Hi guys,

    Well anyways I was just wondering if there's a way of copying the text of the selected list option into another hidden input.

    Thanks in advance...

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    May 2003
    Posts
    1,843
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <select........onchange="secret.value=options[selectedIndex].text">
    .........
    <input type="hidden" name="secret" value="">
    ::: certified wild guess :::


Bookmarks

Posting Permissions

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