How to stop submit button from multiple clicking


#1

I have a submit button then when pressed it saves data and this can take a few seconds. In this time people are pressing the button more than once. How can I ensure 1 click only?

echo $this->Form->submit(‘Book Now’, array(‘label’ => ‘Submit’, ‘class’ => ‘btn btn-info’, ‘div’ => FALSE));


#2

You can disable the button after submit by JavaScript


#3

How is it possible sir? Thank you.


#4

Search on Goolge "disable button after submit by JavaScript"
You will find tons of different solutions