$(parent.node()).find(target).length would still trigger if you click on the brother of the dropdown box