.detach()


.detach( [selector ] )Возвращает: jQuery

Описание: Метод для удаления элементов страницы.

  • Добавлен в версии: 1.4.detach( [selector ] )

    • selector
      Тип: Selector
      A selector expression that filters the set of matched elements to be removed.

The .detach() method is the same as .remove(), except that .detach() keeps all jQuery data associated with the removed elements. This method is useful when removed elements are to be reinserted into the DOM at a later time.

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