+ 2
Arschgburt had asked a question "Is it possible to uncheck a radio button "...What is mean by "uncheck"?
it means Clean all the choices that users had made? And why this feature is needed? Thanks a lots if you help me!
2 Answers
+ 4
Uncheck = remove the tick on a checkbox / unselect a radio button (make the checkbox or radio-button empty / unselect the related option )
And yes, it's possible, through Javascript...
var all_checked_element_in_the_page = document.querySelectorAll(':checked');
var i = all_checked_element_in_the_page.length;
while (i--) all_checked_element_in_the_page[i].checked = false;
Demo of how to implement/use it:
https://code.sololearn.com/WjMNYP2da3WL/#html
+ 2
Thanks a lots! visph