Hello Semicolon
I tried to add the following based on an "old" jquery example you provided:
[](#myModal1)
<div class="modal1 mfp-hide" id="myModal1">
<div class="block mx-auto" style="background-color: #FFF; max-width: 600px;">
<div class="center clearfix" style="padding: 50px;">
</div>
</div>
</div><script>
document.addEventListener('DOMContentLoaded', function() {
var templateContactForm = document.querySelector('#template-contactform');
templateContactForm.addEventListener('formSubmitSuccess', function() {
var feedbackFormSuccessModal = document.querySelector('.feedback-form-success-modal');
feedbackFormSuccessModal.classList.add('open');
});
});
</script>However the functions does not open the modal. Can you provide a solution?
PS: the documentation still mentions the JQUERY and not the vanilla JS.
