jQuery.metadata.setType()
Categories: Utilities
jQuery.metadata.setType( type, name )
Plugin: jQuery.metadata
Description: Sets the default type and name options for all following metadata requests.
-
jQuery.metadata.setType( type, name )
version added: 1.0type Specify the expected location of metadata for the element. Possible values are 'class' (default): search in the class attribute, 'elem': search for an element inside the element being searched, and 'attr': search in a custom attribute on the element.
name The name of the tag or attribute for which to search depending on the value of the 'type' option.
Sets the default type and name options for all following metadata requests.
-
Use the meta attribute as default for metadata requests.
Code:
$.metadata.setType( 'attr', 'meta' )