Opened 14 years ago
Closed 14 years ago
#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 | |
Blocked by: | Blocking: |
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 (2)
Change History (3)
Changed 14 years ago by
Attachment: | jquery-removethis.patch added |
---|
Changed 14 years ago by
Attachment: | preservechildren.patch added |
---|
alternative patch that extends the .remove() function instead of adding another function
comment:1 Changed 14 years ago by
Cc: | kkaefer added |
---|---|
Component: | unfilled → core |
Resolution: | → invalid |
Status: | new → closed |
You can do that manually when needed. Is not a commonly needed feature/addition.
Note: See
TracTickets for help on using
tickets.
better code style