
$(document).ready(function () {

    //------------- Fancy select -------------//
    $('.fancy-select').fancySelect();
    //custom templating
    $('.fancy-select1').fancySelect({
        optionTemplate: function (optionEl) {
            return optionEl.text() + '<i class="pull-left ' + optionEl.data('icon') + '"></i>';
        }
    });

    //------------- Select 2 -------------//
    $('.select2').select2({placeholder: 'Select state'});

    //minumum 2 symbols input
    $('.select2-minimum').select2({
        placeholder: 'Select state',
        minimumInputLength: 2
    });

    // BOOTSTRAP SLIDER CTRL
    $('[data-ui-slider]').slider();
    //Bootstrap switcher
    $("[name='my-checkbox']").bootstrapSwitch();
    // MASKED
    $('[data-masked]').inputmask();

});