title: jQuery not working in django
body: <p>I'm trying to print html data <code>result</code> on page using</p>
  
  <pre><code>$("#regerror").html(result);
  </code></pre>
  
  <p>which doesn't work. But doing it using plain javascript works</p>
  
  <pre><code>document.getElementById("regerror").innerHTML = result;
  </code></pre>
  
  <p>I working with Django. This is how I have included the library in the base template.</p>
  
  <pre><code>&lt;script type="text/javascript" src="{{ MEDIA_URL }}jquery/js/jquery-ui-1.8.18.custom.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="{{ MEDIA_URL }}base.js"&gt;&lt;/script&gt;
  </code></pre>