How to change the style of a radio button with javascript when clicked

PHOTO EMBED

Thu Jun 16 2022 19:12:32 GMT+0000 (UTC)

Saved by @johnnye562 #css

input[type=radio]:checked + label {
    color: #fff;
	background-color: hsl(217, 12%, 63%);
}
content_copyCOPY

This allows a radio buttons style to be updated when selected/checked.

https://stackoverflow.com/questions/20354920/how-to-change-the-style-of-a-radio-button-with-javascript-when-clicked