Can I do a jQuery tree traversal with own match/selector function?

49 Views Asked by At

I want to use $(element).closest(func) with my own selector/match function. I want to test the elements myself, as existing CSS selectors and jQuery extensions are not enough.

I really hoped that jQuery can at least walk the tree for me, but I can’t find a way...

(I already regret mentioning it, but: I’m searching for a specific custom property on an element object, and no, it is not a HTML attribute, so there is no selector for it...)

0

There are 0 best solutions below