Bootstrap switch checked event?

前端 未结 9 1645
感情败类
感情败类 2021-01-31 14:48

I use this codes for checkbox checked event but it does not work.

css



        
9条回答
  •  Happy的楠姐
    2021-01-31 15:33

    This work for me.

    $(".switch").bootstrapSwitch({
            'size': 'mini',
            'onSwitchChange': function(event, state){
                console.log('switched...')
            },
            'AnotherName':'AnotherValue'
        });
    

提交回复
热议问题