Submodal-Add submodals to Bootstrap 3.x modals


You can install Submodal via bower

$ bower install submodal

Then include the JS and CSS in your page.

<link type="text/css" rel="stylesheet" href="bs.sm.css">
<script type="text/javascript" src="bs.sm.js"></script>


$ npm install
$ npm run-script bower
$ npm run-script build

# For watching
$ npm run-script build-watch


Submodals are added to the .modal-body element of a modal. It’s HTML structure is identical to regular modals excluding the following two differences

  • Sub Modals do not have a .modal-header element
  • Sub Modals must have a class of .submodal (in addition to .modal)

get it here