jQuery Mighty Form Styler plugin replaces your form select element for a html dropdown list so you can easily completely style it with css.
Will turn this:
into this:
Enable the magic
$(document).ready(function(){
$('form.mfs').mfs();
});
Refresh (e.g. when you updated the values via ajax)
$('form.mfs').mfs('refresh');
Remove
$('form.mfs').mfs('destroy');
Add some minimal styling
Download from the jQuery Plugin Registry or from GitHub.
v0.2.3 Updated jQuery version in demo to 2.0.0
v0.2.2 Fixed issue: It is possible to initialize the mfs selector twice for the same select element
Fixed issue: The selected options doesn't get the class selected after initialization
v0.2.1 Fixed compatibility issues with jQuery 1.9 and above
v0.2.0 Added support for optgroup options
v0.1.2 Fixed active status on opening when there is already an selected option
v0.1.1 Code cleanup, added destroy and refresh function
v0.1 Initial public beta release
The features listed below are on my list to be implemented in the plugin. They are on random order en will be implemented depending on how much spare-time I have.
Licensed under the MIT License
Copyright (c) 2013 Bas van den Wijngaard, http://www.binkje.nl/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.