-1

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.

Biffen
  • 5,791
  • 5
  • 29
  • 34
user2816424
  • 73
  • 2
  • 3
  • 9

1 Answers1

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,161
  • 1
  • 9
  • 3