Whenever any county, district, or municipality is by law given power to issue bonds which are required to be approved by referendum, such bonds shall be issued only after the same have been approved by the majority of votes cast by those persons eligible to vote in such referendum. The election costs of such referendum shall be paid in whole or in part, as the case may be, out of the county, district, or municipal treasury.