.unwrap()


.unwrap()Возвращает: jQuery

Описание: Удаляет родительские элементы у выбранных элементов, при этом, их содержимое останется на своих местах.

  • Добавлен в версии: 1.4.unwrap()

    • This signature does not accept any arguments.
  • Добавлен в версии: 3.0.unwrap( [selector ] )

    • selector
      Тип: String
      A selector to check the parent element against. If an element's parent does not match the selector, the element won't be unwrapped.

The .unwrap() method removes the element's parent. This is effectively the inverse of the .wrap() method. The matched elements (and their siblings, if any) replace their parents within the DOM structure.

Примеры использования