How to disable the button?

Hi all,
I have a form with submit button, and i want to disable the button while the request the processing…
and then after the request has completed, then again it will be enable…

How to implement this, to my form?

Is there a way to get the acknowledgment after processing the request…
If yes, how to achieve this…

Thanking you for your guidance…

I assume you are using ajax to do the submit…

So with JavaScript you can also do this:
form.Submit.disabled=true;

But this s more a javascript question.