Quick tip: careful with the ifChanged event of iCheck

iCheck is probably the best jQuery plugin for styling (or skinning) radio and checkbox inputs. However, there is a difference between the default change event of radio buttons and the ifChanged event of iCheck: the default change event fires when one of the radio buttons of the same named group is selected. At the same time, another radio is unchecked without firing a change event. On the other hand, the ifChanged of iCheck fires for both the just selected radio and the one that was previously selected. So, if you need to call a function using iCheck events, it is better to listen for change and ifClicked events. Just saying!

Leave a Reply

Your email address will not be published. Required fields are marked *