A district court in the respective legislative district has jurisdiction over the primary contest involving a legislative election. For election contests involving statewide executive offices, the district court whose jurisdiction includes the state capitol has jurisdiction.
Idaho Code § 34-2121