Custom Multiple SelectsAbstractSome rather nifty javascript, originally from http://verens.com/, which converts your nasty unusable multiple selects into a custom DIV with checkboxes. My modified version can be customised via two CSS classes (which you can see in the source), and notably, the code is actually readable. All you have to do to activate it, is include the script in your page, and once the page has loaded it will automatically convert all multiple selects on the page. DemoAnd here's an example. If your browser doesn't support javascript or DOM, then you will see a regular multiple select. DownloadGet the code and example HTML file here. Link to meIf you use any of the code on this site (and if you don't I guess) or it makes your life easier, I'd appreciate a link - http://www.phpguru.org. Thanks. |
