English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The addBack() method adds the previous set of elements in the stack to the current set, which canSelectThroughselectorExpression to filter.
$("selector").addBack("selectorExpression")
In the list item3、4and5Add background to the following:
$("document").ready(function(){ $("li.third-$("li.third").nextAll().addBack().css("background"-color", "coral"); });Test See‹/›
Parameter | Description |
---|---|
selectorExpression | A string containing a selector expression to match the current set of elements (optional) |