title: How to use jQuery in TypeScript
body: <p>I'm trying to get jQuery working in TypeScript. I'm missing something obvious, but don't see it. I need another pair of eyes.</p>
  
  <p>I created an empty TypeScript project in VS2015.</p>
  
  <p>I added the script tag for jquery:</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-2.1.4.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="app.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>In app.js, I added the line to get Intellisense</p>
  
  <blockquote>
    <p>/// reference path=".\Scripts\typings\jquery\jquery.d.ts"/></p>
  </blockquote>
  
  <p>Then I call a jQuery function in window.onload</p>
  
  <pre><code>$.get('http://somesite.com/someCSV.txt', function (data) {
      var txt = document.getElementById('TextArea1');
      txt.textContent = data;
          }, 'text');
  </code></pre>
  
  <p>When I run it, I get an error that $ is undefined.</p>
  
  <p>I missed something. What did I miss?</p>
  
  <p>-- thanks!</p>