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

use .attr() to prevent the automatic type conversion #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

use .attr() to prevent the automatic type conversion #31

wants to merge 1 commit into from

Conversation

b1nj
Copy link

@b1nj b1nj commented Jan 16, 2014

When value of select start from starts from a 0 (exemple value="01") the FancySelect don't work.
From the jQuery data() documentation http://api.jquery.com/data/#data2, it appears that you have to use .attr() to prevent the automatic type conversion.

"To retrieve the value's attribute as a string without any attempt to convert it, use the attr() method."

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

Successfully merging this pull request may close these issues.

1 participant