jquery - Close Boostrap Modal on Contact Form 7 submit -
in bootstrap modal, have contact form 7. can not make modal closed after sending mail. go link of "action" attribute of form. can not delete "action" attribute created dynamically. perhaps solution might use "event.preventdefault ()" "on_sent_ok". not how.
click in 1 note, in compartir , , in de mail icon
no, put code in modal. <?php echo do_shortcode( '[the contact form 7 shortcode]' ); ?>
in modal body.
<div class="modal fade" id="mymodal" tabindex="-1" role="dialog" aria-labelledby="mymodallabel"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="mymodallabel">modal title</h4> </div> <div class="modal-body"> <?php echo do_shortcode( '[the contact form 7 shortcode]' ); ?> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">close</button> <button type="button" class="btn btn-primary">save changes</button> </div> </div> </div> </div>
Comments
Post a Comment