How to check/uncheck radio button on click?

后端 未结 18 1459
情深已故
情深已故 2020-11-29 02:16

I want to be able to uncheck a radio button by clicking on it.

So, if a radio button is unchecked, I want to check it, if it is checked, I want to uncheck it.

<
18条回答
  •  伪装坚强ぢ
    2020-11-29 02:23

    It is better UX to have a default-selected "Select none" explicit option, and not let the user uncheck any radio button.

    (List item 9 in this nngroup (neilsen) article:

    http://www.nngroup.com/articles/checkboxes-vs-radio-buttons/

提交回复
热议问题