[Original] Classic Bootstrap modal frame use article

Source: Internet
Author: User

1,bootstrap modal dialog box and simple use

Div id= "Mymodal" class= "Modal Hide Fade" ><Divclass= "Modal-header"><Buttontype= "button"class= "Close"Data-dismiss= "Modal">X</Button><H3>dialog box title</H3></Div><Divclass= "Modal-body"><P>dialog box Body</P></Div><Divclass= "Modal-footer"><ahref="#"class= "BTN"Data-dismiss= "Modal">Cancel</a><ahref="#"class= "Btn btn-primary"Data-dismiss= "Modal">Are you sure</a></Div></Div> 

Modal dialogs can be called directly using buttons or links, which is simple to use:

<href= "#modal1"  role= "button"  class= "btn Btn-primary btn-sm "  data-toggle=" modal "> Contract Add </a >

Also, when you need to allow the dialog box to clear the form data each time it is opened, the following:

$ (' #modal1 '). Modal (' hide '); $ (function// after adding the contract, clear the form action

[Original] Classic Bootstrap modal box use article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.