Jump to content

an input type that is like an <input type=text and a <select?


Recommended Posts

I would swear I have seen an input type that was somewhere between a plain ol' text box and a select. In other words, the user could choose from the drop-down list or, if their choice was not found in the list, they could type in whatever they wanted. Is there such a control? I spent some time on http://w3schools.com looking for this, but found nothing.

Link to post
Share on other sites

What you're describing is a combo box. HTML doesn't have one. Some operating systems have one, but not all, so they cannot all support such a feature. You can sort of duplicate the behavior yourself using javascript. Some libraries also have a similar thing. Google combo box.

Link to post
Share on other sites

Yeah, I spoke too soon when I said there isn't such a thing. But the compatibility issues should not be ignored if the functionality is essential.

Edited by Deirdre's Dad
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...