#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2011
    Posts
    60
    Rep Power
    4

    Help on having a dropdownlist and in the same time a textbox where i can add new valu


    Hi Guys,

    i have a form where the user has to choose an exixting item from dropdownlist or type in in new one.

    how can i do that.
    Also what i want is when the item is types it will be inserted in a 2nd table ?


    expert ! can we do any magic here ??


    thanks
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,278
    Rep Power
    968
    Well there is no magic for this. You'd show the select box, or offer a text input field where they can enter something that isn't in the box and save it.
  4. #3
  5. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,278
    Rep Power
    968
    Or you might look at jQuery or some of the other JavaScript frameworks that can do things like allow inline editing for select boxes (http://coffeescripter.com/code/editable-select/).

IMN logo majestic logo threadwatch logo seochat tools logo