DEV Community

Bruno Vieira
Bruno Vieira

Posted on

1 1

VanillaJS Customizable SelectBoxes

Hey Guys,

I always had problems when it comes to styling native elements, but mainly SelectBoxes.

So i made a class that replaces native select elements with fully customizable dropdowns & searchbox.

Even though this replaces native select options, you can still use Form Submit, Onchange Events and Attributes as you would with normal usage.

Source: https://github.com/BMSVieira/BVSelect-VanillaJS
Demo : https://bmsvieira.github.io/BVSelect-VanillaJS/

Give it a try!

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay