Answers for "how to call a modal from the button section"

0

display modal without button click

$("#getCodeModal").modal("show");
Posted by: Guest on April-19-2020
0

how to show bootstrap modal

<script>
    var myModal = new bootstrap.Modal(document.getElementById('ModalID'))
    myModal.show()
</script>
Posted by: Guest on December-13-2020
3

bootstrap modal popup

<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button>

<!-- Modal -->
<div id="myModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Modal Header</h4>
      </div>
      <div class="modal-body">
        <p>Some text in the modal.</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div>

  </div>
</div>
Posted by: Guest on May-06-2020
0

modal behind html element

<div class="modal" id="modal"></div>

</body>

</html>
Posted by: Guest on February-25-2020

Code answers related to "how to call a modal from the button section"

Code answers related to "Javascript"

Browse Popular Code Answers by Language