Can anyone help me in knowing why disable="true"
for a button doesn't work in Internet Explorer 11 whereas disable="disable"
works? Also provide a solution which works both in IE 9 and IE 11.
Asked
Active
Viewed 1.0k times
-1

Biffen
- 6,249
- 6
- 28
- 36

user2816424
- 73
- 2
- 3
- 9
-
"disable" != "disabled" ;) – Daniel Siebert Oct 06 '15 at 13:46
1 Answers
3
The correct and easy way to disable buttons is by adding disabled
attribute:
<button>I am not disabled!</button>
<br /><br />
<input type="button" value="Disabled input" disabled/>
<button disabled>I am disabled!</button>

Vaidotas Pocius
- 2,541
- 1
- 10
- 3