Opened 10 years ago
Closed 10 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/
Note: See
TracTickets for help on using
tickets.
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