Every municipality shall have power to establish, maintain, and regulate a jail or, with the consent of the board of county commissioners, to use the county jail for the confinement of persons charged with or convicted of the violation of any ordinance.
SDCL 9-29-24