Reply To: Checkbox/unselecting an option

PennController for IBEX Forums Support Checkbox/unselecting an option Reply To: Checkbox/unselecting an option

#5652
Jeremy
Keymaster

Hi Daniela,

There is no built-in support in PennController for this sort of thing, I should probably work on adding it somewhere

One solution would be to run a function after you’ve printed your Scale elements that will take care of toggling selection, like this

newFunction( () => {
    $(".PennController-Scale input[type='radio']").click(function(){
        $(this).attr("toggle", $(this).attr("toggle") != "true" );
        if ($(this).attr("toggle")=="false") $(this).removeAttr("checked");
    })
}).call()

Jeremy