Selectik is jQuery plugin, easy use, cross-browser selects which can be customised with CSS.
JavaScript CSS
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bower.json change folder structure for bower Dec 3, 2014


Selectik is jQuery select plugin, easy use, cross-browser alternative to the standard select form element which can be customised with CSS. All features of custom select and help you can find on demo page.


  • TAB key control
  • original select key control
  • mouse wheel control
  • search by first letter
  • custom/default scroll
  • smart positioning
  • auto/cutsom width


Added additional parameter 'minScrollHeight' for scroll:

	minScrollHeight: 20

Added HTML support in custom list item. Just add attribute to options (data-selectik) with HTML version:

<option value="[some value]" data-selectik="Spider <i>man</i>">Spider man<option>


First include in html head tag stylesheet for custom selects (you can customize demo CSS file), jQuery, jQuery mousewheel plugin (included in project), and Selectik .js file:

<link rel="stylesheet" type="text/css" href="css/selectik.css" /> // CSS for Selectik
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script> // mousewhell plugin
<script type="text/javascript" src="js/jquery.selectik.js"></script> // Selectik plugin

You can choose what select should be custom by class, id or use for all selects on page by tag:

For all selects on page:


Only with some class/id:


Plugin parametrs

  • Container class (containerClass) - for customizing class of main div around custom and original select. Default value - 'custom-select'.

  • Width of custom select (width) - if you willn't use this parametr custom select will be with width of bigger option. Default value - '0'.

  • Maximum items (maxItems) - you can put max quantity of options that should be visible. If quantity of options will be bigger plugin will put scroll. If value of this paramentr will be '0', all options will be visible. Default value - '0'.

  • Type of scroll (customScroll) - choose type of scroll (custom or original). 1 - custom, 0 - original. Default value - '1'.

  • Speed of animation (speedAnimation) - speed of show/hide animation in milliseconds. Default value - '200'.

  • Smart positioning. Default value - 'true'.

  • Example of using parametrs:
width: 300,
maxItems: 5,
customScroll: 0,
speedAnimation: 100,
smartPosition: false

Plugin API

API of plugin are utils which used when necessary to reload, show/hide, enable/disable, change selected option or set dynamicly width of select.

In Selectik jQuery store a reference to the plugin of object by 'data'. In this case you should use 'data' and know what select to control.

Reload custom select when original was changed:

$('.first select').data('selectik').refreshCS();

Show/hide list:

$('.second select').data('selectik').showCS(); // show list

$('.second select').data('selectik').hideCS(); // hide list

Change selected option:

$('.first select').data('selectik').changeCS({index: 1}); // set first option 'selected'

$('.first select').data('selectik').changeCS({value: 'New'}); // set selected options with value 'New'

Set width:

$('.third select').data('selectik').setWidthCS(200); // set width 200px

Enable/disable select:

$('.first select').data('selectik').disableCS(); // disable select

$('.first select').data('selectik').enableCS(); // enable select

Change/add methods:

Now you can change/add methods for custom select. For example you need to change method of generation html for the list:

  {maxItems: 8}, // options 
    _generateHtml: function(){ // changed method
      this.$collection = this.$cselect.children();
      var html = '';
      for (var i = 0; i < this.$collection.length; i++){
        var $this = $(this.$collection[i]);
        var textOption = $this[0].text;
        var valueOption = $this[0].value;
        html += '<li class="'+ ($this.attr('disabled') === 'disabled' ? 'disabled' : '') +' new" data-value="'+valueOption+'">'+textOption+'</li>';
      return html;

Support browsers:

IE9+, Chrome, Safari, Firefox.


Selectik is licensed under MIT MIT license


Copyright (c) 2012, Ivan Kubrakov