Bootstrap Modal Frame class

Source: Internet
Author: User

The Modal box class of Bootstrap provides some events for listening and executing your own code.

Event Type description

The event is triggered immediately after the Show.bs.modal Show method call. If you click on an element that is a trigger, this element can be accessed through the Relatedtarget property of the event.
Shown.bs.modal This event is triggered after the modal box has been displayed (and at the same time the CSS transition effect is complete). If you click on an element that is a trigger, this element can be accessed through the Relatedtarget property of the event.
The event is triggered immediately after the Hide.bs.modal hide method call.
Hidden.bs.modal This event is triggered after the modal box is hidden (and at the same time the CSS transition effect is complete).
Loaded.bs.modal fires the event after it has loaded data from the remote data source.

JS Code:
$ (' #myModal '). On (' Hidden.bs.modal ', function (e) {
Do something ...
})

Bootstrap Modal Frame class

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.