I've used the jQuery plugin Uniform.js before and it works great.
The only issue I have is that it relies on jQuery. I'm working on a project that really doesn't need jQuery, and I'm reluctant to load an entire framework just for one plugin.
Does anyone know of another plugin that does what Uniform does but doesn't rely on any frameworks?
There are many ways to design a <select> dropdown menu using CSS. The Dropdown Menu is mainly used to select an element from the list of elements. Each menu option can be defined by an <option> element that can nested inside the <select> element.
Example Explained HTML) Use any element to open the dropdown content, e.g. a <span>, or a <button> element. Use a container element (like <div>) to create the dropdown content and add whatever you want inside of it. Wrap a <div> element around the elements to position the dropdown content correctly with CSS.
Example Explained Use any element to open the dropdown menu, e.g. a <button>, <a> or <p> element. Use a container element (like <div>) to create the dropdown menu and add the dropdown links inside it. Wrap a <div> element around the button and the <div> to position the dropdown menu correctly with CSS.
My guess is that you're not going to gain much by avoiding jQuery, and you're probably going to waste a lot of time even if you do find something that suits your needs. I mean, it's only 31KB (plus the size of the plugin).
If you're set on not using jQuery, maybe have a look at NiceForms.
There are some demos on this page, and the script file is under 10kb when packed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With