The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Unwrap extension for jQuery
This jQuery extension removes the immediate parent wrapping element
from each element of the matched set. For elements in the matched
set that share a common parent, the common parent element is removed.
$("p").unwrap();
New in version 1.2:
- Added .unwrapInner() function replaces the elements of the matched set with their contents.
- Modified demo page to add new .unwrapInner() demos and enhance existing demos.
- Changed minification to utilize Microsoft Ajax Minifier, rather than YUI Compressor. (For better minification.)
New in version 1.1:
- Elements that are direct children of the body element will not be unwrapped. (If allowed, it would delete the body tag.)
- Text node siblings of unwrapped elements are preserved.
The included demo page provides visual tests of various scenarios.
Download package includes full source, minified version, demo page, license, readme, and changelog.
