jQuery stylish form select plugin
zelect is a jQuery plugin that replaces the default select element into something much more simpler and fancier.
If the option list is known on the client, finite and manageable, use HTML:
<select id="select-backed-zelect"> <option value="first">First Option</option> <option value="second">Another Option</option> <option value="third" selected="selected">Third option</option> </select>
$('#select-backed-zelect').zelect()
Asyncronous Paged Setup
If the option list is server-backed, infinite or close to it, use opts.loader
:
<select id="async-backed-zelect"></select>
$('#async-backed-zelect').zelect({ initial: 'Third', loader: function(term, page, callback) { callback(['First for page '+page, 'Second', 'Third']) } })
Callback expects an array. Elements in the array can be anything that renderItem can handle.
zelect will load the next page of results from opts.loader
whenever the option list is scrolled to the bottom. It will stop trying to load more once the callback is called with an empty array.
Read more:https://github.com/mtkopone/zelect
You might also like
Tags
accordion accordion menu animation navigation animation navigation menu carousel checkbox inputs css3 css3 menu css3 navigation date picker dialog drag drop drop down menu drop down navigation menu elastic navigation form form validation gallery glide navigation horizontal navigation menu hover effect image gallery image hover image lightbox image scroller image slideshow multi-level navigation menus rating select dependent select list slide image slider menu stylish form table tabs text effect text scroller tooltips tree menu vertical navigation menu