Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to show bootstrap 5 modal using jquery

/*SM*/ 
$("#exampleModal").modal("show");
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

PREVIOUS NEXT
Code Example
Javascript :: drawer navigation set width react native 
Javascript :: how to generate random rgb color number in javascript 
Javascript :: get random element from array js 
Javascript :: jwt token expire times 
Javascript :: how to import background image in inline css in react 
Javascript :: try catch in node js 
Javascript :: jquery download image from url 
Javascript :: electron no menu bar 
Javascript :: newtonsoft.json string to object 
Javascript :: how to find the last object in an array 
Javascript :: object keys and values javascript 
Javascript :: mongodb add admin user 
Javascript :: replace string using javascript 
Javascript :: audio in react 
Javascript :: session check in javascript 
Javascript :: xhr 
Javascript :: how to comment in the react javascript 
Javascript :: check change event in jquery 
Javascript :: get parent id javascript 
Javascript :: react native release apk command 
Javascript :: dom click is not a function 
Javascript :: js sort array of objects 
Javascript :: javascript replace all 
Javascript :: how to check if a folder exist if not then create nodejs 
Javascript :: write bytes64 in json python 
Javascript :: javascript count occurrences in string 
Javascript :: flutter access json object inside object 
Javascript :: how to make nextjs image component responsive 
Javascript :: get message author discord.js 
Javascript :: change value of drop down using jquery 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =