I\'d like to know more about using data-* attributes with HTML and its use within jQuery. I\'m simply trying to retrieve data-attribute-name=\"a value\" with .data() and
The "data-" attribute prefix should be stripped off in your .data() call, so assuming:
"data-"
.data()
ohai
it would be retrieved via:
console.log($(".als-item").data("loc-subject"));