We sometimes need to use prompt with input in our project because if we use prompt modal is very interesting and specially for GUI. Always we like to use prompt modal for creating data or editing data and also for conformation. In this example i use bootbox JS for prompt modal with input that way we can get input value easily.
You can try this:
<pre class="prettyprint lang-html">
<title>Jquery - bootstrap Prompt modal using bootbox.js</title>