How to check/uncheck radio button on click?

后端 未结 18 1395
情深已故
情深已故 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:36

    If there is only one radio button you needs to use checkbox instead.

    There is no meaning to having one radio button they works with group.

    probably you are looking for checkbox control.

提交回复
热议问题