Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
How to get parent element with specific class in pure JavaScript?
Asked
Oct 05 '16 at 12:34
Active
Oct 05 '16 at 12:59
Viewed
91 times
2
Is there some analog of the line
$(this).parents('.class');
but in pure JavaScript?
javascript
dom
edited Oct 05 '16 at 12:59
asked Oct 05 '16 at 12:34
stckvrw
1,689
18
42
Do you really want all parents, or just the nearest one?
–
Oct 05 '16 at 12:54
0 Answers
0