A commission may not transact any business or exercise any powers under this part unless, by ordinance, the legislative body declares that there is need for a commission to function in the community. The ordinance of the legislative body declaring that there is need for a commission to function in the community shall be subject to referendum as prescribed by law for a county or a city ordinance.