To toggle a Bootstrap modal using jQuery, the method $('#myModal').modal('___') is used.
- 'toggle'
- 'show'
- 'hide'
- 'dismiss'
The correct method is $('#myModal').modal('toggle'). This method toggles the visibility of the modal, showing it if it's hidden and hiding it if it's visible.
Loading...
Related Quiz
- 3. Implement AJAX-driven data refresh in Bootstrap tables by targeting the '___' element.
- The '___' method in Bootstrap is used for programmatically hiding alerts.
- How would you address a situation where your CSS overrides are not being applied due to Bootstrap's specificity?
- The variable ___ is used to customize the horizontal padding inside columns in Bootstrap.
- The Bootstrap CSS class '___' works in tandem with Bootstrap JS to create a responsive navbar.