How to prevent multiple button click?


The site uses a custom registration form, and slow Internet users, it is not immediately triggered, they start to "poke" button several times...

Prompt, please, as I hang on the button some event like "the" or a GIF loader to show up?

<input type="submit" class="recall-button" onclick="yaCounter47636929.reachGoal('user_reg'); return true;" 
name="submit-register" value="<?php _e('Signup','wp-recall'); // Register ?>">
March 23rd 20 at 19:43
1 answer
March 23rd 20 at 19:45
Just hang on this input disabled attribute on load time
And you can full instructions, plz?
He does not a coder, and freelance for such a seemingly small change do not want to go - Yasmin57 commented on March 23rd 20 at 19:48
@Yasmin57not want to, but have - Keven33 commented on March 23rd 20 at 19:51
@Yasmin57, and Google does not allow laziness? - Deron90 commented on March 23rd 20 at 19:54
@Deron90, googling "disabled", but I didn't understand (
There is also no examples, just like
function zapret()
 var btn = document.getElementById('ds').disabled = true;
- Yasmin57 commented on March 23rd 20 at 19:57

Find more questions by tags WordPress