jQuery, and how to wrap the elements in the specified element


jQuery, and surrounded by the element in the specified element (wrap) method has the following methods.


Both methods arguments (wrappingElement or wrappingFunction) can be taken.

wrappingElement is


wrappingFunction is


wrap, wrapAll, wrapInner differences are as follows.

wrap
Wrap each matched element.
wrapALL
If multiple elements match, then wrap them together.
wrapInner
Wrap the matching child elements.

Words alone, so confusing, because the samples are posted on the above link, please see.
Or, here the reverse jQuery Reference may also be helpful.

Tags: JavaScript


HOME > Articles of the year two thousand and eleven > jQuery, and how to wrap the elements in the specified element

HOMEHOME CategoryCategory HistoryHistory

Site Search :

[HTML link code]