471,627 Members | 2,254 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 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 6667
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by JDJones | last post: by
6 posts views Thread by Kermit Piper | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

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.