document.addEventListener("DOMContentLoaded", function() { for (const label of document.querySelectorAll(".radioinputsblock label")) { const { control} = label; label.after(control) } })