How to submit the form after n-seconds?

Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike

There is a form on the website, which is filled automatically using jquery for payment type yandex/qiwi/wm/paypal. How can I warn the user before submitting the form? And is it possible for the timer to send?

p.s. the option Document.location is not suitable, because the post method
by | 15 views

2 Answers

0 like 0 dislike
How can I warn the user before submitting the form?

Display a modal window before submitting, for example:
if(confirm('Send form')) form.send();
0 like 0 dislike
$('form').on('submit', function(event) { event.preventDefault(); // kill the event(data not sent) var form = this; console.log('do validation of the fields'); console.log('or hang timeout'); console.log('or show something to the user'); console.log('doing anything'); form.submit(); // and then send the data });
110,608 questions
257,186 answers
36,596 users