end()

end()

V1.0 Overview

Before the recent return to a "destructive" operation. That is, a list of elements of the former state of the match changed.

If there is no prior destructive operations, an empty set is returned. The so-called "disruptive" means any change in the operation of the matched jQuery elements. This includes any returns in a jQuery object Traversing function - 'add', 'andSelf', 'children', 'filter', 'find', 'map', 'next', 'nextAll', 'not', 'parent', 'parents', 'prev', 'prevAll', 'siblings' and 'slice' - plus Manipulation of 'clone'.

Examples

description:

Select all the p elements, locate and select the span child elements, and then come back up selected element p

HTML code: Linear Motor Parameters
<p><span>Hello</span>,how are you?</p>
jQuery code:
$("p").find("span").end()
result:
[ <p><span>Hello</span> how are you?</p> ]

Guess you like

Origin www.cnblogs.com/furuihua/p/12018118.html