Bootstrap toggle doesn't display well when added dynamically

后端 未结 3 1433

I\'m trying to add bootstrap toggle switch dynamically but it does not display well after adding it. Thanks for your help!



        
3条回答
  •  無奈伤痛
    2021-01-16 08:07

    Add Bootstrap toggle js after your main js file

    Then call bootstrapswitch statement in your js file

    $('.your_toggle_class_name').bootstrapSwitch('state', true); 
    

提交回复
热议问题