How to find parent with a specific class?

Get element in js, of course in manual I can find the desired item via parentElement and to prescribe until I find the desired item, but is it possible to choose parentElement with a certain class or a certain attribute?
July 9th 19 at 13:33
1 answer
July 9th 19 at 13:35

Find more questions by tags JavaScriptjQuery