The invention generally relates to a connector (1) for receiving a cable end (12), arranged for being attached to a circuit board. The connector is provided with a through hole (10) for receiving the cable end, at least one upper lip (5) and at least one lower lip (3) with a connector recess (11, 13) therebetween for fitting onto an edge of a slit (6) in the circuit board. The connector is further provided with at least one snap holding element (4), disposed adjacent to said connector recess (11, 13), so as to engage with a portion (7) of the circuit board, adja-cent to the edge of the slit 6 in the circuit board.