Option 1
Option 2
Option 3
Others
Industry*
Option 1
Option 2
Option 3
Others
Industry
I am designing a Select Dropdown with floating label and with HTML and CSS only. When I am using “required” attribute the dropdown in working fine but when i don’t the label comes back to it’s previous position…I want it that when user click in dropdown the label must go to top and if user don’t select any option it must go back…and if user select anything it must be at top. And most important by default no option will be selected
Ashok Singh is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.