'$' is undefined
<p>I get this error whether I put the jQuery $.ajax call in a  <code>$(document).ready(function() {</code> or not. This is on a ASP.NET MVC .cshtml file.</p>

<pre><code> &lt;script type="text/javascript"&gt;
    $(document).ready(function() {

        $.ajax({
            url: '/api/courses',
            success: function(data) {
                var list = $('#courses');
                for (var i = 0; i &lt; data.length; i++) {
                    var course = data[i];
                    list.append('&lt;li id="' + course.id + '"&gt;' + course.name + '&lt;/li&gt;');
                }
            }
        });
    });
</code></pre>
