Open TroyAG opened 5 years ago
initialize from JS
$(".modal").modal();
<!-- Modal Trigger --> <a class="modal-trigger" href="#modal1">Modal</a> OR <button data-target="modal1" class="btn modal-trigger">Modal</button>
<!-- Modal Trigger -->
<a class="modal-trigger" href="#modal1">Modal</a>
<button data-target="modal1" class="btn modal-trigger">Modal</button>
<!-- Modal Structure in HTML or .handleB --> <div id="modal1" class="modal"> <div class="modal-content"> </div> <div class="modal-footer"> <a href="#!" class="modal-close btn-flat">Agree</a> </div> </div>
<!-- Modal Structure in HTML or .handleB -->
<div id="modal1" class="modal">
<div class="modal-content">
</div>
<div class="modal-footer">
<a href="#!" class="modal-close btn-flat">Agree</a>
also see: https://materializecss.com/modals.html#!
initialize from JS
$(".modal").modal();
<!-- Modal Trigger -->
<a class="modal-trigger" href="#modal1">Modal</a>
OR<button data-target="modal1" class="btn modal-trigger">Modal</button>
<!-- Modal Structure in HTML or .handleB -->
<div id="modal1" class="modal">
<div class="modal-content">
</div>
<div class="modal-footer">
<a href="#!" class="modal-close btn-flat">Agree</a>
</div>
</div>
also see: https://materializecss.com/modals.html#!