Bug Tracker

Modify

Ticket #11805 (closed bug: duplicate)

Opened 12 months ago

Last modified 12 months ago

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:
Blocking: Blocked by:

Description

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

Change History

comment:1 Changed 12 months ago by rwaldron

  • Status changed from new to closed
  • Resolution set to duplicate

comment:2 Changed 12 months ago by rwaldron

Duplicate of #10174.

comment:3 Changed 12 months ago by rwaldron

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.