Re:5 Tips for Better jQuery Code
by tr4nslator on Wednesday November 19, 2008 @05:55PM
(#370059)
Check out the jQuery Metadata plugin:
http://plugins.jquery.com/project/metadata
It lets you choose where to define this kind of custom data: in an arbitrary attribute, as a class within the className attribute, or in a script tag.
Getting the argument itself is actually easy enough, I more ended up struggling to find an "appropriate" or natural interface for it within the html itself.