I'm building a custom wordpress plugin that involves submitting data using a form. The form works quite well but it is susceptible to double submission. How can I prevent double form submission?
I used this. It disables the submit button but it prevents inserting of the values into the database table:
<form ... onsubmit="myButton.disabled = true; return true;">
How can I fix this?
Thanks in advance!