title: Django template inline jQuery not working
body: <p>Trying to get inline jQuery in my template working so that I can use django url tags in AJAX calls later. 
  But I can't get the javascript to work. In my subpage I extend my index page which has all my javascript and jQuery libraries. </p>
  
  <pre><code>{% extends "subpage.django" %}
  
  
  {% block content %}
  &lt;script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'&gt;&lt;/script&gt;
  
      &lt;script&gt;
      $("#dialog").hide();
      $(".delete").click(function(){
              alert("clicked!");
       });  
  
      &lt;/script&gt;
  
      {% if graph %}
          &lt;h3&gt; {{ graph.name }} &lt;/h3&gt;
         {% url 'graphImage' graph.id as the_graph %}
          &lt;img src="{{the_graph}}" alt="{{the_graph}}"/&gt;
  
  
  
          &lt;a class="button delete" id="{{ graph.id }}" href="#"&gt;Delete&lt;/a&gt;
  
  
          &lt;div id="dialog" title="Confirm delete"&gt;Are you sure?&lt;/div&gt;
  
  
      {% endif %}
  {# need to add object.id to dialog in javascript #}
  {% endblock  %}
  </code></pre>
  
  <p>Made some edits. Put script in block content so it shows now when showing the source code. Still doesnt work however.
  I now included the jQuery source using google apis. But the inline script still doesn't work. What is strange is that if I type it out in the console it works perfectly just not here! I know I am missing something!</p>