jQuery Methods: end()

By: Dusty Arlia
Published on Saturday, December 14, 2013, 03:17 PM
Last Updated on Saturday, July 11, 2015 at 9:06 PM
Total Updates: 2

The jQuery end() method is used in method chaining. Here is an example:

$("p").find("span").css("color","red").end().addClass("code");

Calling the end() method restores the set of matched elements to its previous state.

Comments:

Ad: