Reputation: 6761
I want to have a select box that besides the given options allows to set a value manually. I am not a hundred percent sure if that is possible but I think I have seen it before. On the w3school page for select
I couldn't find anything relevant.
As I am working Rails, I also checked the APIDock page for the select_tag
form helper, but there I also couldn't find anything.
Upvotes: 1
Views: 34
Reputation: 20033
While it's a very common functionality, what you are looking for is not part of the standard HTML (5 or not) controls.
To achieve the desired effect you have to use a JavaScript framework.
The good news is that there are a lot of frameworks and/or plugins doing this. The bad news is that you will have to spend some time playing with a couple until you find one you're happy with.
The two most used JS frameworks, jQuery and Bootstrap, have dozens of plugins that does this, just search for them.
Upvotes: 1