.pushStack()


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

Описание: Add a collection of DOM elements onto the jQuery stack.

  • Добавлен в версии: 1.0.pushStack( elements )

    • elements
      Тип: Array
      An array of elements to push onto the stack and make into a new jQuery object.
  • Добавлен в версии: 1.3.pushStack( elements, name, arguments )

    • elements
      Тип: Array
      An array of elements to push onto the stack and make into a new jQuery object.
    • name
      Тип: String
      The name of a jQuery method that generated the array of elements.
    • arguments
      Тип: Array
      The arguments that were passed in to the jQuery method (for serialization).

Example:

Add some elements onto the jQuery stack, then pop back off again.

1
2
3
4
jQuery([])
.pushStack( document.getElementsByTagName( "div" ) )
.remove()
.end();