drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.39k stars 1.63k forks source link

Uncheck radio button on second click... #402

Closed BN83 closed 3 years ago

BN83 commented 6 years ago

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?

hibobby commented 6 years ago

$('.i-checks').on('ifClicked', function(event){ if( $(event.target).is(':checked')){ $(event.target).iCheck('uncheck'); }else{ $(event.target).iCheck('check'); } });