User-friendly jQuery Select Box Replacement - Quick Select

File Size: 33.8 KB
Views Total: 5148
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
User-friendly jQuery Select Box Replacement - Quick Select

Quick Select is a jQuery plugin that transforms standard select options into easily styleable and clickable inline elements for quick selection.

See also:

How to use it:

1. Import the jQuery quick select plugin's files into your document which has jQuery library installed.

<link href="dist/quickselect.css" rel="stylesheet">
  ...
<script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="dist/jquery.quickselect.js"></script>

2. Apply the plugin to a select box.

$('select').quickselect({
  // options here
});

3. Default plugin options.

// added to active/selected button
activeButtonClass: 'active', 

//
breakOutAll: false,

// options to break out of select box
breakOutValues: [], 

// added to each button
buttonClass: '', 

// added to each button if select box is not a required field
buttonDefaultClass: '', 

// added to each button if select box is a required field
buttonRequiredClass: '',

// CSS prepend: namespace_class
namespace: 'quickselect', 

// text to display on select button
selectDefaultText: 'More&hellip;', 

// class on wrapping div
wrapperClass: '',

// button tag
buttonTag: 'button', // button tag

4. Style the plugin whatever you like.

.active {
  ...
}

.wrapperClass {
  ...
}

Change log:

2016-11-30

  • v2.2
  • added support for module loaders

2016-08-19

  • v2.1
  • Added 'buttonTag' option to allow changing of HTML tag used.

2015-12-30

  • v2.0
  • Button classes for when SELECT is required or not.
  • License switched to MIT.

2015-10-19

  • V1.2 disabled status

2015-10-15

  • Keyboard compatible

2015-10-10

  • bugfix

 


This awesome jQuery plugin is developed by will-stone. For more Advanced Usages, please check the demo page or visit the official website.