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
Attachments (0)
Change History (1)
Changed December 28, 2012 01:30PM UTC by comment:1
resolution: | → notabug |
---|---|
status: | new → closed |
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