Bootstrap Input Modal
A simple solution for displaying and handling Bootstrap input modals on the fly.

Demo
Fiddle: https://jsfiddle.net/e8701srg/

Repository
https://github.com/dday9/Bootstrap-Input-Modal

Usage
Example 1:
Code:
inputModal.show()
Example 2:
Code:
inputModal.show({
    closeIcon: true,
    message: 'Enter a value, please.',
    title: 'Example',
    type: 'number',
    no: {
        class: 'btn btn-danger',
        text: 'No'
    },
    yes: {
        class: 'btn btn-success',
        text: 'Yes'
    }
})
    .then(value => {
        // the user entered a value
    })
    .catch(() => {
        // the user closed the modal without entering a value
    });