Search
 
SCRIPT & CODE EXAMPLE
 

HTML

bootstrap 5 modal

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>
Comment

how to create modal in bootstrap 5

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#staticBackdrop">
This is a bootstrap Modal 
</button>

<!-- Modal -->
<div class="modal fade" id="staticBackdrop" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="staticBackdropLabel">Modal title</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Understood</button>
      </div>
    </div>
  </div>
</div>
Comment

modal boostrap 5

<!-- Button trigger modal -->
<button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#exampleModal">
  Launch demo modal
</button>

<!-- Modal -->
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>
Comment

bootstrap5 modal

var myModalEl = document.getElementById('myModal')
var modal = bootstrap.Modal.getInstance(myModalEl) // Returns a Bootstrap modal instance
Comment

modal bootstrap 5

modal in bs5
Comment

PREVIOUS NEXT
Code Example
Html :: how to add ads on html 
Html :: add link behind a button in html 
Html :: HTML5 Option Groups 
Html :: how to create a search bar like google in html 
Html :: html dot 
Html :: onclick nothing 
Html :: bootstrap table combine columns 
Html :: jQuery script tag to include into HTML 
Html :: not allow decimal in input type number 
Html :: tailwind css checkbox 
Html :: tab image code 
Html :: pyscript python 
Html :: mat-tab-group change 
Html :: call to action phone number 
Html :: at sign html 
Html :: call modal by id href 
Html :: add delay to hrefs 
Html :: how to select all text when input box is clicked 
Html :: add custom validation input message html 
Html :: add html validation to mobile number 
Html :: convert string to boolean js 
Html :: html input datetime-local value from mysql date time 
Html :: lorem picsum 
Html :: form action without redirect 
Html :: checkbox onchange vue 
Html :: how to change color in html 
Html :: prevent from going to a function html click 
Html :: bootstrap progress bar 
Html :: how to add an image to my web page from my computer 
Html :: check if xampp is installed ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =