Rubén asked me for a simple way (in coding) to change the background color of the “radio selector” type fields for a project.
This type of field is frequently used on “Check list” type pages, where there are many fields with very simple values where the solution of “radio” type fields is very efficient.
However, to give clarity to the values entered, the set of background colors helps to identify the filled fields and their content.
Objetive:
Have a color change function depending on the values of an “exclusive selector” field and it is very simple to be able to apply it to many fields of this same type in a form.
DEMO : https://fhumanes.com/radio_color
If you are interested in this topic, continue reading the article at this link .