Hello guys,

I have a form on some pages and I'm trying to make submit button disabled when user submits form.

I googled for it and found this solution:

HTML Code:
onclick="this.disabled=true;
But it doesn't work. How can I make this code work?