title: Cannot use the submit button without refreshing page using Django
body: <p>I'm new to django, and I have setup my project exactly the same way as the tutorial "polls" project.
  I'm trying to get the page <strong>not</strong> refreshing or being redirected to another view when I submit an option through a button.</p>
  
  <p>This is my <strong>detail.html</strong>:</p>
  
  <pre><code> (...)
   &lt;div class="cardq mt15"&gt;
                              &lt;form action="{% url 'polls:vote' question.id %}" method="post"&gt;
                                  {% csrf_token %}
                                  {% for choice in question.choice_set.all %}
                              &lt;!-- New Question --&gt;
                              &lt;div class="cardq__qu"&gt;
                                  &lt;i class="far fa-question-circle"&gt;&lt;/i&gt;
                                  &lt;!--&lt;p name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}"&gt;
          &lt;label for="choice{{ forloop.counter }}"&gt;{{ choice.choice_text }}&lt;/label&gt;&lt;br&gt;
                                  &lt;/p&gt;--&gt;
                                  &lt;input type="submit" name="choice" id="choice{{ forloop.counter }}" value="{{ choice.id }}"&gt;                                &lt;/div&gt;
                              {% endfor %}
   (...)
  </code></pre>
  
  <p>I have this on my <strong>views.py</strong>:</p>
  
  <pre><code>def vote(request, question_id):
  question = get_object_or_404(Question, pk=question_id)
  try:
      selected_choice = question.choice_set.get(pk=request.POST['choice'])
  except (KeyError, Choice.DoesNotExist):
       return render(request, 'polls/detail.html', {
          'question': question,
          'error_message': "You didn't select a choice.",
      })
  else:
      selected_choice.votes += 1
      selected_choice.save()
      return HttpResponseRedirect(reverse('polls:results', args=(question.id,)))
  </code></pre>
  
  <p>What I basically want is to NOT get redirected to results.html and display the results on detail.html <strong>without refreshing the page</strong>, the same one that had the voting buttons. It's already accurately displaying the poll results on the same page, but if I click one of the buttons, it forces to get redirected to the results page.</p>