Skip to main content

Bug Tracker

Side navigation

#13127 closed bug (notabug)

Opened December 28, 2012 07:53AM UTC

Closed December 28, 2012 01:30PM UTC

$.data with capital

Reported by: nj.wu Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:
Description

$.data with capital will get undefined, pls make it like $.attr

http://jsfiddle.net/78hUs/1/

Attachments (0)
Change History (1)

Changed December 28, 2012 01:30PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

The dash in the .attr() is what makes uppercase "Hello" work. Attributes are case-insensitive.

http://jsfiddle.net/dmethvin/78hUs/7/

You are not using .data() correctly. Please ask for help on a forum and read this article:

http://www.learningjquery.com/2011/09/using-jquerys-data-apis