1 (function($, undefined) {
4 var ChSelect = function(element, options) {
5 $.fn.ch_widget.Constructor(element, options);
6 this.$element = $(element);
7 this.options = $.extend(
9 $.fn.ch_widget.defaults,
11 disableWhenDriving: true
15 ChSelect.prototype = $.extend(
17 $.fn.ch_widget.Constructor.prototype,
23 $.fn.ch_select = function(option) {
24 return this.each(function() {
26 data = $this.data('ch_select'),
27 options = typeof option == 'object' && option;
30 $this.data('ch_select', (data = new ChSelect(this, options)));
36 $.fn.ch_select.Constructor = ChSelect;
39 * ================= */
41 $('select').ch_select();