jquery.sumoselect ============= jquery.sumoselect.js - A beautiful cross device Single/Multi Select jQuery Select plugin. ------------------------------------------------------------------------------- View Live [Demo Here](http://hemantnegi.github.io/jquery.sumoselect/sumoselect_demo.html) Documentaion [Documentation Here](http://hemantnegi.github.io/jquery.sumoselect/) Latest stable : [Download from here](https://github.com/HemantNegi/jquery.sumoselect/releases) A jQuery plugin that progressively enhances an HTML Select Box into a Single/Multiple option dropdown list. The dropdown list can be fully customizable using simple css. It can adapt itself according to any device, keeping in mind that the User Experience is not broken. **Notable Features** - Inline Search. - Optgroup support. - Single and Multi select option. - Fully customizable by simple css. - Supports almost all devices. - Intelligently Renders itself according to the devices. - Renders native Single/Multiple pop up on Android, ios, Windows and other devices. - Custom postback data format (Multiple select data can be passed either as csv or default select) - Selected, Disabled, and Placeholder Support - Easily extendable to allow developers to create new widgets **Update v1.1.0** - Wraped all properties in a sumo object connected to native select element. - Added standard add, remove, select, unselect, disable, eanble, unload etc. methods for better manipulation - Instance of SumoSelect can be accessed from native reference of select element - ~~Added ```disabled = true``` to disable/ enable the control.~~ Now its ```enable()``` and ```disable()``` - Bug fixings.. **Update v1.2.0** - Added a new option for custom dispaly formats - Now ```outputAsCSV``` is default set to ```false``` - fixed problems with unload and other handler methods on mobile deveices - Bug fixings.. **Update v2.0.0** - Added tabindex and keyboard navigation support - Added select all feature - Redesigned the UI (No external icons are used now and color scheme can be controlled by css) - Added some really useful new methods like ```reload(), selectAll(), unSelectAll(), enable(), disable()``` - Better rensponse to lost focus and other events and non recognised devices. - Lots of bug Fixings.. **Update v3.0.0** - Support for searching added. - Optgroup support added - Restructured markup - Direction of select is controllable by settings. - All the text can be customized (better localization support). - Lots of bug Fixings.. ##Requirements jQuery 1.8.3+ (It is always recommended to use the latest version of jQuery) ##Desktop Browser Support IE8+, Firefox 4+, Chrome, Safari 4+, Opera 11+ (Other browsers may work, but I did not test on them) ##Mobile/Tablet Browser Support iOs 3+, Android 2.1+ , Windows Mobile (Other browsers may work, but I did not test on them) ##Forking If you find that you need a feature that SumoSelect does not currently support, either let me know via the SumoSelect issue tracker, or fork SumoSelect on Github and easily extend SumoSelect to create your own widget! ##Usage *To just go with the default options simply do* ```javascript $(document).ready(function () { $('.SlectBox').SumoSelect(); }); ``` *To provide optional settings, simply pass settings object to SumoSelect()* ```javascript $(document).ready(function () { $('.SlectBox').SumoSelect({placeholder: 'This is a placeholder', csvDispCount: 3 }); }); ``` If you want a instance to the SumoSelect object to call handler methods ```javascript var MySelect; $(document).ready(function () { MySelect = $('.SlectBox').SumoSelect(); }); ``` *NOTE: SumoSelect returns an array of select elements if there are more than one in the matching selector.* You can also find the instance to SumoSelect object by directly selecting your select element like ```javascript $('select.SlectBox')[0].sumo. ..... ``` You can perform all the operations on underlying original select and then reload the UI by ```javascript $('select.SlectBox')[0].sumo.reload(); ``` **Settings** The following settings are available now: - `placeholder` `(string)` The palceholder text to be displayed in the rendered select widget (on priority basis). *Maximum priority is given to native placeholder attribute in select tag i.e. - `