I have a button that I would like to disable when the form submits to prevent the user submitting multiple times.
I have tried naively disabling the button with java
I'm not a huge fan of writing all that javascript in the code-behind. Here is what my final solution looks like.
Button:
Javascript: