-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selected option is not updated when an icon is picked #20
Comments
Well, that's actually how it's supposed to work. The value of the option MUST be the same of the icon class name. What exactly are you trying to achieve here? |
ok this is good to know that! In my case, each icon is referenced with an object in the database. The value of the option is the pk of that object in order to be able to retrieve the selected object on server side when the form is submitted. Would it be possible to achieve that? |
I guess you could add a data-id attribute to each option and retrieve that
|
If the got a value attribute, selected option is not updated when an icon is picked
Not working:
Working:
You can see it here: https://jsfiddle.net/5m9wco4b/5/
The text was updated successfully, but these errors were encountered: