Modal Dialog


Bootstrap Plugins Public New

Easy  

5min

The HTML page contains a button and modal dialog.

Using just Bootstrap's HTML attributes and no JavaScript, add attributes to the elements so that:

  1. When the Open button is clicked, the modal dialog is opened.
  2. When the Close button is clicked, the modal dialog is closed.
HTML5, CSS3
   

Run OK, but 4 out of 4 test cases fail:

  •   Open button has correct attributes : Wrong answer
  •   Close button has correct attributes: Wrong answer
  •   Open button shows dialog: Wrong answer
  •   Close button hides dialog: Wrong answer