javascriptjquerytwitter-bootstraptwitter-bootstrap-3bootstrap-dialog

Bootstrap Toggle with BootstrapDialog


Excuse me,

Is it possible to show Bootstrap Toggle in message field of BootstrapDialog?

For example:

BootstrapDialog.show({
  title: 'Information',
  message: '<input class="toggleExample" type="checkbox" data-toggle="toggle">'
});

Also, I tried to initialize $('.toggleExample') before BootstrapDialog and after BootstrapDialog, but they all didn't work.


Solution

  • BootStrap dialog plugin is built on bootstrap 3 library similarly Bootstrap dialog is built on bootstrap 2 library.

    so both the plugins work with different versions of core library, hence you cannot combine features of both plugins.

    For more info refer plugins official site: