I have a table with a lot of radio buttons. There is a "clear all" button that deselects everything. I am using similar code to perform it:
<input type="radio" name="selections[1]" id="selections_1_3" value="">
<script>
$('#button').click(function(){
$('#selections_1_3').prop('checked', false);
});
</script>
It works fine, the only issue is that the next time I try to select a button that was deselected via this code, I have to click twice because somehow the button may still be with checked attribute and performs nothing with a single click.
I have tried mouseup(), keyup(), and refresh(); but nothing solves.