Form in an Lightbox in IE11
-
Hi.
I tried using the plugin in an lightbox popup (fancybox 3 and featherlight). I found that I’m unable to sent (or validate) the form inside the popup in Internet Explorer 11. I think it is maybe because the libraries move the form inside the DOM before they display them, because when I set the “original” form to
display:block
the form works just fine.My code is:
<?php
echo ‘<div id=”download-form”>’;
echo do_shortcode( ‘[contact-form-7 id=”9851″]’ );
echo ‘</div>’;
?>
<script>
jQuery(function ($) {
$(‘a.credit’).click(function (e) {
e.preventDefault();
$.featherlight(‘#download-form’, {persist: ‘shared’});
});I know IE is a very special snowflake, but has anyone any input for me? It would help a lot.
- The topic ‘Form in an Lightbox in IE11’ is closed to new replies.