drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)

Home Page:http://fronteed.com/iCheck

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncheck radio button on second click...

BN83 opened this issue · comments

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?

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