[Plugin: Contact Form 7] Bind .ajaxForm after loading form via AJAX
-
I am loading my page contents using AJAX, so even though the Javascript for ContactForm7 is loaded in the footer, since the page contents and the Contact Form is loading via AJAX, the $(‘div.wpcf7 > form’).ajaxForm (line 10) function is not binding properly.
Does anyone know of a way that I can bind the form dynamically after/during the AJAX call, please? (ideally without hacking the ContactForm7 plugin core – I can modify the AJAX call for the pageload all I want – I am using a customized version of the plugin “AJAX page loader 1.5” for that)
The test site is located at: knome.earthman.ca (load the contact page from the homepage via ajax with the menu link)
- The topic ‘[Plugin: Contact Form 7] Bind .ajaxForm after loading form via AJAX’ is closed to new replies.