add, end and andSelf
Combine sets and step back in a chain.
Example
$("h1").add("h2").css("color", "red");
$("ul").find("li").addClass("a").end().addClass("b");Exercise
Combine sets.
$("h1").("h2")
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.