JQuery nearest A * or * B

I want to use closest to find the nearest tr or div . What is the correct syntax for "or" together?

+4
source share
1 answer

Try something like "tr,div" .

+6
source

All Articles