If you are looking to use jQuery Shorthand, check out the Getting Started guide.
Shorthand provides a straightforward parser for converting Simple, Advanced, and Complex shorthand declarations into jQuery object containing injectable HTML. There are two interfaces for accessing the shorthand parser. By default,
$$ is used for the parser function.
Note: If you’re using a framework which already defines
$$, you can call
jQuery.shorthand.noConflict() to restore the original value of
Alternatively, the parser is always accessible within jQuery:
jQuery.shorthand("div") is analogous to
Will create the following HTML:
<div id="some-id" class="some-class some-other-class"></div>
Last edited by garside,