clear dropdown select2 fields after post submission
-
Hi,
I’ve come across one slight problem that I’m hoping you can help me out with. The form is working brilliantly, the only thing is that the dropdown fields (being populated by Map form fields to post taxonomy) using Select2 are not cleared after the form is submitted.
I’ve trieddocument.addEventListener( 'wpcf7submit', function( event ) { $( 'form.wpcf7-form' )[0].reset(); }, false );
which triggers (tested by adding an alert) but does not clear the dropdown select2 fields.
Any suggestions?
Cheers,
Philip
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘clear dropdown select2 fields after post submission’ is closed to new replies.