How to diable a button

What language?

Asp.net mvc

Same as you would in html:

html5: <button id="foo" disabled>...
xhtml: <button id="foo" disabled="disabled">...

Submit buttons follow the same pattern:

html5: <input type="submit" id="foo2" value="Submit" disabled />
xhtml: <input type="submit" id="foo2" value="Submit" disabled="disabled" />

For a more detailed example, answer pritaeas' question. In what language do you want to disable the button? Determined server side from your controller (ie C# or VB) or on the client side using Javascript?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.