Pricing Blog

How to work with Radio Buttons (Input Element)

  • xioteer-1256976185934745630

    Xioteer

    1 year ago

    I am trying to work out a simple selection with radio buttons. Two options, so I can use a simple boolean.

    The general concept is clear, but the radio buttons from the input do not deselect. They stay focussed, even when I delete the :focus class and replace it with something else.

    They just stay selected and cannot be deselected at all.

    Is there are certain way to do this, or should I go with a manual approach?