jQuery.metaparse()
Categories: Utilities
jQuery.metaparse( element, [ options ] )Returns: jQuery
Plugin: jQuery.metaparse
Description: Run jQuery methods instantly without script tags.
-
jQuery.metaparse( element, [ options ] )
version added: 1.0element A DOM element.
options A set of key/value pairs that configure the .metaparse() call. A default are set for any option by jQuery.metaparseSettings.
The jQuery.metaparse()
method is capable of runnig meta code extracted from classes, random attributes, child elements and HTML5 data-* attributes.
The syntax: write jQuery methods without selector and use single quotes, the extracted code will be applied to the element which containted the code.
If you wnat to run code from jQuery sub classes write the name of the sub class object before the first dot.
Be sure the sub class was defined on the global window object like this window.$sub = $.sub()
.