Skip to content
GitLab
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
Hide whitespace changes
Inline
Side-by-side
Web/Javascript/JQuery.md
View page @
d7ce20e8
...
...
@@ -54,6 +54,9 @@ $('.solid').addClass('highlight'); //add the class highlight to every object wit
.
parent
()
//get the parent element
.
parents
()
//get all the parents of the element
.
closest
(
'
class
'
);
//get the closest element that have the class
.
append
();
//to add after the end
.
prepend
();
//to add before the debut
```
```
javascript
...
...
...
...