Results 1 to 2 of 2

Thread: Adding A Text field's value to a select option

  1. #1
    Join Date
    Sep 2005
    Location
    Connecticut
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Adding A Text field's value to a select option

    Hello again, it is me, Wizard13335, ever seeking complete JavaScript knowledge. I was looking for a script that would put a text feild's entry into a <select> option value. I think it would be a kind of modified version of this:
    Code:
    <select 
    onchange="document.getElementById('tx').value+=this.value;">  
    <option value="Happy Easter!">Happy Easter!</option>  <option 
    value="Merry Christmas!">Merry Christmas!</option>  <option 
    value="Happy New Years!">Happy New Years!</option> </select>
     <textarea id="tx"></textarea>
    which i got from another thread, but instead of the option value going into the text box, a text fields entry would be going into a select option.
    This probably isn't possible, but please reply soon if you have found or already know how to do it.
    Thanks

  2. #2
    Join Date
    Sep 2005
    Location
    Connecticut
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Nevermind. I don't really need it anyway.

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
  •