Skip to main content

Bug Tracker

Side navigation

#11805 closed bug (duplicate)

Opened May 23, 2012 04:54PM UTC

Closed May 23, 2012 05:02PM UTC

Last modified May 23, 2012 05:11PM UTC

data returns an integar instead of a string when the data is padded with 0's

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:
Description

reading .data('something') if data-something="000000001" the value returned is 1 when it should return 000000001

Attachments (0)
Change History (3)

Changed May 23, 2012 05:02PM UTC by rwaldron comment:1

resolution: → duplicate
status: newclosed

Changed May 23, 2012 05:02PM UTC by rwaldron comment:2

Duplicate of #10174.

Changed May 23, 2012 05:11PM UTC by rwaldron comment:3

If you need the value as a string, attr("data-something")