All municipalities within this State having less than one thousand inhabitants and not provided for in La. Rev. Stat. 3:2531 may prohibit by ordinance the running at large of any and all kinds of livestock within the corporate limits of such municipalities, provided the questions shall have first been submitted to the voters qualified by law to vote at municipal elections within the municipality proposing to adopt such an ordinance and the voters at an election shall have authorized the adoption of the ordinance by a majority vote.