Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

How to change class? #63

Open
sangkavr opened this issue Nov 10, 2014 · 1 comment
Open

How to change class? #63

sangkavr opened this issue Nov 10, 2014 · 1 comment

Comments

@sangkavr
Copy link

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');

@Bjornjansfelt
Copy link

Bjornjansfelt commented Jun 28, 2016

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">

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants