The present invention of a latching device includes a positioning portion and at least one retaining element. The positioning portion has at least one positioning post and at least one receiving groove. The receiving groove passes through the positioning portion and the positioning post. The retaining element is received in the receiving groove. The retaining element has at least one clamping portion. Because the clamping portion of the latching device passes through the hole of the card and buckles the card, the latching device can be disposed on the bottom of the card. Thereby, the object of the embodiment is achieved.