10 ms·
I shied away from that only because I wasn't sure about adding custom attributes and making my xhtml invalid, e.g. to a div block which doesn't have a show attr
by jsdalton 18y ago
I shied away from that only because I wasn't sure about adding custom attributes and making my xhtml invalid, e.g. to a div block which doesn't have a show attribute in the spec.
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.
- tr4nslator 18y agoCheck out the jQuery Metadata plugin: http://plugins.jquery.com/project/metadata 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.