Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Changes
Page history
Update JQuery
authored
Apr 26, 2022
by
Joel H
Show whitespace changes
Inline
Side-by-side
Web/Javascript/JQuery.md
View page @
71d888ba
...
...
@@ -49,4 +49,7 @@ $('.solid').addClass('highlight'); //add the class highlight to every object wit
.
last
()
//last element
.
prev
()
//previous element
.
next
()
//next element
.
parent
()
//get the parent element
.
parents
()
//get all the parents of the element
.
closest
(
'
class
'
);
//get the closest element that have the class
```
\ No newline at end of file