There are selectpicker
beside checkbox
. I want if checkbox is checked, selectpicker will be enable, if unchecked, selectpicker will be disable.
I wrote this which was not working ( Here is the fiddle ):
$('.checkBox').on('ifChecked', function(event) {
$(this).parents('.clearfix').find('.selectpicker').removeAttr('disabled');
});
$('.checkBox').on('ifUnchecked', function(event) {
$(this).parents('.clearfix').find('.selectpicker').attr('disabled');
});