Documentation

Plugins/Metadata

From jQuery JavaScript Library

Jump to: navigation, search

« Back to the jQuery Metadata Plugin page

Extract metadata from a DOM Element and return it as an Object.

NameType
Documentation:








NameType
metadata( options )Returns: Object
Extracts, caches, and returns metadata from the first element in the jQuery collection.
jQuery.metadata.setType( type, name )Returns: null
Sets the default type and name options for all following metadata requests.
jQuery.metadata.get( elem, options )Returns: Object
Extracts metadata from an element.
Tests:

NameType
Demos:

NameType