FancySelect icon indicating copy to clipboard operation
FancySelect copied to clipboard

How to change class?

Open sangkavr opened this issue 10 years ago • 1 comments

Hi, I don't understand how to set a new class for the select. I'd like to have two different select styles. Is it possible? I tried : var months = $('#my_month'); months.fancySelect(); var class = months.data('fancy-select2');

sangkavr avatar Nov 10 '14 21:11 sangkavr

Bit of a late answer but I just stumbled across this issue :) you simple just set a data attribute on the html itself. This will result in a wrapped div with something like <div class="fancy-select fancy-select2"> in your case <select id="my_month" data-class="fancy-select2">

Bjornjansfelt avatar Jun 28 '16 08:06 Bjornjansfelt