I am working on the development of an application using the CakePHP framework.
We all have clients who click many times on the submit button.
How can I hide or disable the Submit button when the user clicks on it?
On the Internet, I can do many JavaScript, but I need help integrating this into my cake PHP script.
place it on the Submit button:
onclick = "this.disabled = true; return true;"
Example
& lt; Input type = submit value = 'submit' onClick = 'this.disabled = true; DoSection (loading); Back to truth; '& Gt; Submit using jquery $ ("form"). (Function () {$ (": submit", this) .attr ("disabled", "disabled");});
Comments
Post a Comment