473,386 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Option Select + input field in one

Hi List,

I wonder if it's possible to have a "input text form field" behaving
like a value list, "select option". I don't want two fields, I want to
have a "select option" with a input field so the user can select a
value or enter one in the same place...

CSS?

TIA,

Dominique

Oct 4 '07 #1
3 6741
do*****@gmail.com wrote:
Hi List,

I wonder if it's possible to have a "input text form field" behaving
like a value list, "select option". I don't want two fields, I want to
have a "select option" with a input field so the user can select a
value or enter one in the same place...
It just doesn't exist in HTML.
CSS?
CSS doesn't allow you to create new controls.
Oct 4 '07 #2
On Thu, 04 Oct 2007 02:18:52 +0200, <do*****@gmail.comwrote:
Hi List,

I wonder if it's possible to have a "input text form field" behaving
like a value list, "select option". I don't want two fields, I want to
have a "select option" with a input field so the user can select a
value or enter one in the same place...

CSS?
Also known as a combobox, and non-existant in normal HTML.

There have been several attempts using some javascript and CSS tricks to
mimique the functionality, with various success. Google for 'HTML
combobox', and be very aware your page should continue to work with
javascript disabled, unless it's an intranet page with known UA
configurations.
--
Rik Wasmus
Oct 4 '07 #3
On Oct 4, 3:46 am, "Rik Wasmus" <luiheidsgoe...@hotmail.comwrote:
On Thu, 04 Oct 2007 02:18:52 +0200, <do.u...@gmail.comwrote:
Hi List,
I wonder if it's possible to have a "input text form field" behaving
like a value list, "select option". I don't want two fields, I want to
have a "select option" with a input field so the user can select a
value or enter one in the same place...
CSS?

Also known as a combobox, and non-existant in normal HTML.

There have been several attempts using some javascript and CSS tricks to
mimique the functionality, with various success. Google for 'HTML
combobox', and be very aware your page should continue to work with
javascript disabled, unless it's an intranet page with known UA
configurations.
--
Rik Wasmus
Hi Guys, thanks for the quick response. I have check the "HTML combo
script", it is exactly what I want but it's to much code and it did
not work in IE 6 but in Firefox it was perfect.

I know that CSS don't add new control, it just that sometime your able
to fake it...

Thanks Guy!!!

Dominique
Oct 4 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JDJones | last post by:
Using PHP and MySQL. Trying to put a list of categories into a drop down select option of a form like: <form name="form" action="<? print $_SERVER?>" method="get"> <select name="subject">...
3
by: J. Muenchbourg | last post by:
I have an ASP admin script where I'm adding records, and I have a category that already has set name values hard-coded into a selct option pulldown, but if the user wants to create a new category...
4
by: Dan | last post by:
Can anyone offer suggestions on how to do this or if it is possible? I have a form that uses a drop down box and 2 text fields. What I am trying to do is have the value of each text box set by...
4
by: Old Lady | last post by:
Hi, I need help! I have a SELECT/OPTION list. My goal is to have a TEXT input field in a form that is normally disabled, but it should become enabled when the user select one predefined OPTION....
1
by: jzhang29 | last post by:
I have a JSP page and it contains a dropdown list called Office. What I try to do is: When I select different office from this list, the information of office (address, phone,etc) will be...
8
by: McKirahan | last post by:
Firefox does not reflect selected option via innerHTML How do I get Firefox to reflect selected option values? <html> <head> <title>FFinner.htm</title> <script type="text/javascript">...
6
by: Kermit Piper | last post by:
Hello, I thought this should be easy, but... all I want to do is set the value of this state drop-down based on a session var I'm getting back from a redirect (from the processing page): <%...
8
by: Raul | last post by:
Hi, I have a select list that gets populated from the DB. When the user makes a selection I am able to retrieve this value via Request.Form(...) However, I am wondering if you can retrieve...
3
by: Venturini | last post by:
I am trying to put together a web page where the customer makes choices of products and is then given a total. I am extremely new to Javascript and have managed to get as far as I have from web...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.