title: How can i use Ajax success data in same template or somewhere else?
body: <pre><code>    $.ajax({
          type: "POST",
          url: "{% url 'my_url' %}",
          async: false,
          data: formData,
          cache: false,
          contentType: false,
          processData: false,
          success: function(data) {
              console.log(data)
              name = data.name
          error: function(e) {
              alert(e.message);
          }
      });
  </code></pre>
  
  <p>Here i want to use this name variable in template(In Django Template). How can i use directly?
  Means can i use like </p>
  
  <pre><code>&lt;html&gt;
  {% if myname = = name %}
  &lt;input type="text" value="name" disable&lt;/input&gt;
  {%endif%}
  &lt;/html&gt;
  </code></pre>
  
  <p>Here name is a variable coming from django views in ajax success.</p>