- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to use Bootstrap Alert Plugins
Alert messages are used to display information such as warning or confirmation messages to the end users.
You can try to run the following code to implement alert plugins in Bootstrap −
Example
<!DOCTYPE html> <html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <div id = "myAlert" class = "alert alert-success"> <a href = "#" class = "close" data-dismiss = "alert">×</a> <strong>Success!</strong> the result is successful. </div> <script> $(function(){ $("#myAlert").bind('closed.bs.alert', function () { alert("Alert message box is closed."); }); }); </script> </body> </html>
- Related Articles
- How to use Bootstrap Scrollspy Plugins
- How to use Bootstrap Carousel Plugins
- How to use Bootstrap Affix Plugins
- How to use Bootstrap Popover Plugins
- How to use Bootstrap Dropdown Plugins
- How to use Bootstrap Button Plugins
- How to use Bootstrap Collapse Plugins
- How to use Bootstrap Tab Plugins
- How to use Bootstrap Tooltip Plugins
- How to include Bootstrap Plugins on a website
- What is Bootstrap Plugins
- What are Bootstrap Transition Plugins
- Usage of Bootstrap Modal Plugins
- Bootstrap alert class
- Bootstrap alert-dismissable class

Advertisements