On clicking a radio button I want to replace the class “none” with “flex”.
I have tried using classList.addClass() and classList.removeClass() to no avail.
Any help appreciated.
You don’t really need to add one class and remove the other. You could just add the none class and then remove it (or just toggle it) assuming that .row already has a style of flex.