To initiate the bootbox
with a textarea
, use the following code snippet:
bootbox.prompt({
title: "This is the title",
inputType: 'textarea',
placeholder: 'Feedback',
callback: function (result) { console.log(result); }
});
You will see the textarea
element generated as shown below:
<textarea class="bootbox-input bootbox-input-textarea form-control" placeholder="Feedback"></textarea>
I attempted to assign an id like this: id: "test_id",
but encountered an error. Any assistance would be appreciated.
The bootbox is triggered by clicking a button.