4 ms·
I still like this CSS implementation better, rather than a whole jQuery plugin. Works great on mobile as well. http://jsbin.com/OTaYIFE/2/ http://jsbin.com/OTa
by bringking 13y ago
I still like this CSS implementation better, rather than a whole jQuery plugin. Works great on mobile as well.
http://jsbin.com/OTaYIFE/2/ http://jsbin.com/OTaYIFE/2/
- bringking 13y agoSorry don't mean to negative, each implementation has it's own merits and times when it would be appropriate to use. Good job on building and sharing OP.
- TheSisb2 13y agoNo offense taken by your original comment. The fluidity of that JSbin on mobile is much better compared to mine. However, your version doesn't seem to work at all on IE8 or IE9. Also I feel like there's a lot of weight given to the words "jQuery plugin" that makes it feel like unnecessary bloat, but a good plugin is actually quite small (this is <300bytes gzipped+minified) and has a very small footprint if your combining all your scripts anyways. Maybe there's a way to incorporate the best of both worlds? I'll look into it, but a pull request is always welcome :)
- Gigablah 13y agoIt's nice but all your inputs need to have the "required" attribute, so now you can't have optional fields.