Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13127 closed bug (notabug)

$.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/

Change History (1)

comment:1 Changed 7 years ago by dmethvin

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

Note: See TracTickets for help on using tickets.