title: Javascript - load template in html of element
body: <p>I have a template that I want to render inside html element on click of element. I want to do something like ( I am using jquery): </p>
  
  <pre><code>$(".btn")on("click", function(){ 
       $("#element").html(partial_template.html)
  });
  </code></pre>
  
  <p>Buto this of course wont work. How can I achieve this?</p>
  
  <p>EDIT: I am using Django, if this matters!</p>