simplify selector to $('.tau-card[data-entity-id="' + currentCard.Id + '"] .tau-card-header-container'), selector 'div' is redundant