Html – How to disable input element whose type is submit

htmlinput

I know the following works:

<input type="text" disabled="disabled" />
<button disabled="disabled"> 

But how would you disable this?

<input type="submit" ....>

Any idea? Do I have to use javascript?

Thanks.


Okay. It might have been my Firefox problem. I swear I did use the same synatx.
Thanks, and sorry for such a silly question?

Best Solution

You can use disabled="disabled" on input's that are of type submit:

<input type="submit" disabled="disabled" />