BootstrapModals (modal box) is created using a custom Jquery plug-in. This article describes how to use the BootStrap modal box. If you are interested, join us.
BootStrap modal box Overview
Bootstrap Modals (modal box) is created using a custom Jquery plug-in. It can be used to create a modal window to enrich user experience, or to add practical functions to users. You can use Popover and Tooltip in Modals (modal box ).
1. Bootstrap modal dialog box and simple use
P id = "myModal" class = "modal hide fade">XDialog Box title
Dialog Box subject
Cancel OK
You can use buttons or links to directly call the modal dialog box. This is a simple usage:
Contract Addition
In addition, when you need to make the dialog box clear the form data each time it is opened, as shown below:
$ ('# Modal1 '). modal ('hide '); $ ("# modal1 "). on ("hidden", function () {$ ('# form1') [0]. reset () ;}); // clear the form after adding the contract
The above content is the use of the BootStrap modal box introduced by xiaobian. I hope it will help you. For more exciting content, please stay tuned to the script home website!