How to get twitter bootstrap toggle switch values using jquery

后端 未结 4 1346
梦毁少年i
梦毁少年i 2021-01-31 17:51

I am using http://bootstrapswitch.site/ for toggle switch buttons. How can I get the toggle switch like \'on\' or \'off\' using jQuery?

My Code is :

<         


        
4条回答
  •  悲&欢浪女
    2021-01-31 18:31

    About changing state in my case,

    ('#switcher').bootstrapSwitch('state', false); 
    

    It's correct code.

提交回复
热议问题