+ 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!

22nd Feb 2018, 4:01 AM
GO!
GO! - avatar
2 ответов
+ 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
22nd Feb 2018, 9:33 AM
visph
visph - avatar
+ 2
Thanks a lots! visph
22nd Feb 2018, 11:02 PM
GO!
GO! - avatar