www.webdeveloper.com
Results 1 to 3 of 3

Thread: drop down field that also allows input

  1. #1
    Join Date
    Jan 2005
    Posts
    1

    drop down field that also allows input

    is there a way to allow a user to either input a text value or select from a drop down and the results gets stored in the form field. for example below: the list of valid values are small, medium or large but my user wants to enter 'extralarge' and i want to allow it into my field.

    in other words combining the functionality of:
    <INPUT TYPE=TEXT NAME="sizepizza"> and
    <SELECT NAME="sizepizza">
    <OPTION VALUE="s">small
    <OPTION VALUE="m">medium
    <OPTION VALUE="l">large
    </SELECT>

  2. #2
    Join Date
    Dec 2004
    Posts
    8,637
    The HTML method:
    Code:
    Size:  <SELECT NAME="sizepizza">
           <OPTION VALUE="s">small
           <OPTION VALUE="m">medium
           <OPTION VALUE="l">large
           </SELECT>
    Other: <INPUT TYPE=TEXT NAME="sizeother">
    Otherwise, without a trip to the server, JavaScript is required.

  3. #3
    Join Date
    Jan 2005
    Posts
    8
    You can also do that in Visual Basic and export to HTML.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles