Languages

HTML - How in simple way to make input radio element deselect on next click?

5 points
Asked by:
Violetd
925

As in the question, I am looking for a simple way to deselect <input type="radio" /> button on next click.

Is there simple solution?

1 answer
1 points
Answered by:
Root-ssh
178290

You should use JavaScript to get that effect.

e.g.:

Source: https://dirask.com/snippets/JavaScript-deselect-input-radio-element-on-second-click-DlBRrj

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join