I have a website that uses contact form 7 for my contact form.
I added a jQuery function that will focus the first empty fields before clicking the submit button.
What I want to do is when I clicked the submit button, all the fields are empty, I want to focus on the first empty fields after clicking the submit button.
What jquery function should i use? Now this is my JS:
$( ".col-form3").find( "input:first").focus();
NOTE. Before clicking the "Submit" button, the jquery caption is executed correctly.
source
share