jDropdown
June 22nd, 2008 - jQuerySo yesterday I was playing about with the idea of creating a custom dropdown component. So I did. I’ve abstracted it all into a jQuery plugin meaning you can have as many of them on the page as you like. I’m still creating the demo page but you can see a rough demo here:
http://demos.stuartloxton.com/customdropdown/dev.html
The jDropdown (HTML version) listens to the change event of the original as well, so if you already have some javascript trickery manipulating forms then this doesn’t change anything. And of course when jDropdown changes it also changes the original form element.
There are still a few things before it’s in a releasable state but it works for now.
TODO:
Swap ID inheritance so the old dropdown keeps it’s ID and new dropdown doesn’t
Organize global settings and dropdown instance settings
Test whether the jQuery object passed in is actually a dropdown
Create cover over page so when clicked the jdropdown closes just like the standard form element
Create some standard themes/CSS for it.
Create demo page