Bootstrap switch checked event?

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

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

css



        
9条回答
  •  逝去的感伤
    2021-01-31 15:26

    The documentation provides the events for the bootstrap-switch. But here is an example that uses a single checkbox as well as a radio group just for completeness. I have also thrown in the Disable method as well.

    $('#TheCheckBox').on('switchChange.bootstrapSwitch', function () {
       $("#CheckBoxValue").text($('#TheCheckBox').bootstrapSwitch('state'));
    });
    

提交回复
热议问题