I need some help with a JavaScript problem. So, here's the situation:


I have a form in my web application, and I want to disable a specific button on submission of the form. Basically, after the user clicks the submit button, I don't want them to be able to click it again until the form processing is complete. I'm sure it's a common issue, but I can't seem to find a straightforward solution.





And here's what I've tried so far (but it's not working).