Modify ↓
Ticket #3749 (closed feature: invalid)
Preserve children when deleting elements
| Reported by: | kkaefer | Owned by: | flesler |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | core | Version: | 1.2.6 |
| Keywords: | Cc: | kkaefer | |
| Blocking: | Blocked by: |
Description
It is sometimes necessary to preserve the children of an element and just delete the element itself (e.g. when you wrap/wrapInner an element and want to get rid of the wrapper). This patch adds a removeThis() function to jQuery.
Attachments
Change History
Changed 4 years ago by kkaefer
-
attachment
jquery-removethis.patch
added
Changed 4 years ago by kkaefer
-
attachment
preservechildren.patch
added
alternative patch that extends the .remove() function instead of adding another function
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

better code style