How can you trigger an alert to close automatically in Bootstrap?
- Using JavaScript/jQuery
- Adding the "alert-dismissible" class
- Setting a timer with the "data-dismiss" attribute
- Pressing the "ESC" key
To make an alert close automatically in Bootstrap, you can set a timer using the "data-dismiss" attribute. This attribute specifies the duration (in milliseconds) for which the alert will be visible before closing.
Loading...
Related Quiz
- Can Bootstrap be used alongside other CSS frameworks without conflicts?
- How does modularizing Bootstrap components enhance code maintainability?
- To control the maximum width of a container at different breakpoints, modify the '___' CSS property.
- Bootstrap's '___' class can be dynamically updated with AJAX to display loading states.
- In Bootstrap, how can custom JavaScript be used to enhance dropdown event handling?