1) I assume you mean bubbling.
2) The bubble order is child to parent, not the other way around...
Ayşe has it right that you're pretty much going to have to check it by class. Either that or you could add a child like a span for the text content, and target just that instead of the parent tag that wraps everything.
SIDE NOTE all those data attributes in a dropdown is... well, making me suspicious you're using JS for nothing.