- How to make an input type=text look like select dropdown?
- Can I put input inside select?
- What is the input type for dropdown?
How to make an input type=text look like select dropdown?
use dropdown icon as background of your textbox. Use a select element instead then? Don't see why you'd use an input[type=text] when you want the appearance of a select . If you can't directly alter the HTML use JS to convert it.
Can I put input inside select?
Option tag takes only text and not other HTML elements. You cant insert an input box into a select drop down.
What is the input type for dropdown?
The <datalist> Element
Users will see a drop-down list of the pre-defined options as they input data. The list attribute of the <input> element, must refer to the id attribute of the <datalist> element.