472,958 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 6725
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.