title: How can I add confirmation dialog to a submit button in html5 form?
body: <p>I am creating an application in <code>django</code> and I have the next problem: I have a form in html with a submit button, but I want to show a confirmation dialog to select <code>Yes</code> or <code>No</code> before processing the information. How could I do it?</p>
  
  <p>This is my form code:</p>
  
  <pre><code>&lt;form id="id" method="post" action="/y/b/" enctype="multipart/form-data"&gt;
  
      {% csrf_token %} 
  
      {{ form.as_p }}
  
      &lt;input class="btn btn-primary" type="submit" name="submit" value="A" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thank you so much!</p>