Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with disabling submit buttons on form submit

I am using the jQuery disable on submit plug-in but I have a problem. If I disable the submit buttons they don't get passed back to the server so I cant tell which button was pressed. Is this normal? Is there anything I can do about it?

I really don't want to retool my web site so I have to set a variable on form submission to tell which button was pressed.

Any ideas?

like image 944
Jordie Avatar asked Aug 31 '26 03:08

Jordie


1 Answers

How to Disable the Submit Button of a Web Form

This method hides the button instead of disabling it, and programmatically inserts a disabled <button> tag to make it appear just like the submit button was disabled. Works great.

like image 135
Josh Stodola Avatar answered Sep 01 '26 16:09

Josh Stodola



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!