July 22, 2010

jQuery Plugin: HTML5 Inline Data

HTML5 Data Attributes are sexy. What’s sexier is an easy way to work with these data attributes using jQuery. Sure, you could do something like: jQuery(‘#pancakes’).attr(‘data-type’); But who wants to type the “data-” prefix over and over again? So, here’s a quick little plugin I whipped up. It’s probably terrible when it comes to jQuery [...]

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel