iCheck logs user events that you can listen to. I applied a working example for jsbin , the main difference is this:
$("#my_cb").on("ifChanged", hide_row_metod);
There are two events: ifChecked and ifUnchecked . If you want to catch all the changes in your checkbox, you need to either listen to them or just listen to ifChanged . This will work to switch the line since you are testing checked in hide_row_metod .
In my example, I use a block element div#row1 , so after checking and div#row1 it will look different ( inline ).
Also: you have a typo in your method name (missing h ).
source share