Thought this would be simple however having some difficulty. I want to uncheck a radio button, and even checkboxes, however, have achieved checkboxes with just simulated clicks. The below I have tried:
$( "#x" ).prop( "checked", false );
$( "#x" ).attr('checked', false);
$( "#x" ).removeAttr('checked');
I have also tried javascript checked = false and other methods, I also noticed the jQuery/UI
.checkboxradio('refresh')
method however could not get this to fire. Used the jQuery/UI
as a whole as could not find the specific module however function did not seem available.
Anyone got a nice solution for this?