title: How to enble/disable a button in TypeScript 1.5?
body: <p>Using VS 2013. After having installed TypeScript 1.5 and following the question/suggestion to upgrade:</p>
  
  <p>"Your project uses a version of TypeScript older than the version currently installed with Visual Studio. You may get errors if you try to build your project. Would you like us to upgrade the TypeScriptToolsVersion in your project file so you don't see this warning again?"</p>
  
  <p>I got a bunch of errors like: </p>
  
  <p>Error 39    Build: Property 'disabled' does not exist on type 'HTMLElement'.</p>
  
  <p>on statements like:</p>
  
  <pre><code>document.getElementById("btnExcel").disabled = false;
  </code></pre>
  
  <p>with 'disabled' curly underlined.</p>
  
  <p>On <a href="https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes" rel="noreferrer">https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes</a> referring to version 1.5 it says:
  "Properties on resize, disabled, uniqueID, removeNode, fireEvent, currentStyle, runtimeStyle are removed from type HTMLElement"</p>
  
  <p>Now I rephrased those "erroneous" statements like this:</p>
  
  <pre><code>document.getElementById("btnExcel").setAttribute('disabled', 'disabled');
  </code></pre>
  
  <p>which to me looks weird. </p>
  
  <p>Can this be expressed more elegantly in a typesafe way in TypeScript 1.5? Can you give examples for both: enabling and disabling?</p>
  
  <p>Thanks for any help!</p>