News for hackers. Stuff that matters.
Re:PlainJS – The Vanilla JavaScript Repository by Nasmon on Wednesday May 13, 2015 @03:06PM (#9541246)
> parents('.classname')

In DOM4, which is available in modern browsers: .closest('.classname') possibly also .parent('.classname'), but haven't looked it up.

There are no comments on this comment yet.