Side navigation
#15150 closed bug (notabug)
Opened June 16, 2014 02:42PM UTC
Closed June 16, 2014 02:44PM UTC
.data() doesn't convert '10.00' to number.
Reported by: | gersonk | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.11.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<span id="a" data-value='10.00'> <span id="b" data-value='10.01'>
$("#a").data("value"); // returns "10.00" (string) $("#b").data("value"); // returns 10.01 (number)
Attachments (0)
Change History (1)
Changed June 16, 2014 02:44PM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
http://api.jquery.com/data/