title: How to send data to view without using html forms?
body: <p>I have some data(checkbox and input field) in template file which I want to send to views.Due to page refresh upon submit checkbox field is unchecked.So how to send data to django view without using html form.Is it possible using jquery/ajax?</p>
  
  <pre><code>&lt;form id="myform"&gt;
      {% csrf_token %}
      &lt;p id=id3&gt;Categories&lt;/p&gt;
      {% for i in My_Cat %}
          &lt;input type="checkbox" id="mycheck" name="cat_name" value="{{i.category}}"&gt;{{i.category}}&lt;br&gt;   
   &lt;!--category is db column --&gt;
   &lt;!--My_Cat is the context from the view --&gt;
      {% endfor %}
  
      &lt;p&gt;Price&lt;/p&gt;
      &amp;#8377;&lt;input type="text" name="min_price" maxlength="4" size="3" &gt;
      to &amp;#8377;&lt;input type="text" name="max_price" maxlength="4" size="3"&gt;&lt;br&gt; 
      &lt;input type="submit" value="Go" style="margin-top: 6px;"&gt;
  &lt;/form&gt;
  </code></pre>