Skip to content
Alexey Kupriyanenko edited this page Nov 14, 2013 · 2 revisions

jBone(selector[, context])

selector A string containing a selector expression

context A DOM Element, Document, or jBone to use as context

Accepts a string containing a CSS selector which is then used to match a set of elements.

jBone(element)

element A DOM element to wrap in a jBone object.

jBone(elementArray)

elementArray An array containing a set of DOM elements to wrap in a jBone object.

jBone(jBoneObject)

jBoneObject An existing jBone object to clone.

jBone(html[, attributes])

html A string defining a single, standalone, HTML element (e.g. <div> or <div></div>).

attributes An object of attributes, events, and methods to call on the newly-created element.

Creates DOM elements on the fly from the provided string of raw HTML.