The end( ) method reverts the most recent destructive operation, changing the set
of matched elements to its previous state right before the destructive operation.
Here is the simple syntax to use this method:
Here is the description of all the parameters used by this method:
Following is a simple example a simple showing the usage of this method. This selects all
paragraphs, finds span elements inside these, and reverts the selection back to the
$("p").find("span").end().css("border", "2px red solid");
<p><span>NewFile.</span>, how are you?</p>
Your Query was successfully sent!