0.0.05 form poster
This commit is contained in:
@@ -7,8 +7,11 @@ function chooseRadioInput(el, callback){
|
||||
$radios.forEach(radio => {
|
||||
radio.classList.remove('checked')
|
||||
})
|
||||
el.classList.toggle("checked");
|
||||
|
||||
let checked_state = el.classList.contains("checked");
|
||||
$parent = el.closest('.cw_w_radio_inputs_radio_input');
|
||||
let $radio = $parent.querySelector('.radio');
|
||||
$radio.classList.toggle("checked");
|
||||
|
||||
let checked_state = $radio.classList.contains("checked");
|
||||
if (callback) callback(checked_state)
|
||||
}
|
||||
Reference in New Issue
Block a user