Uncheck radio button on second click...
BN83 opened this issue · comments
BN83 commented
I have 2 radio buttons next to each other and they work great, however once you have checked one, there is no way to remove it other than reloading the page. Is it possible to click a checked radio button to uncheck it?
马海波 commented
$('.i-checks').on('ifClicked', function(event){
if( $(event.target).is(':checked')){
$(event.target).iCheck('uncheck');
}else{
$(event.target).iCheck('check');
}
});