title: flask-wtforms show a popup after clicking on submit button
body: <p>I am using flask wtform and i want to show a confirmation popup after pressing the submit button so user can see that their submission is successful.</p>
  
  <p>forms.py:</p>
  
  <pre><code>    post = FloatField('', validators=[DataRequired()])
      submit = SubmitField('Quote')
  </code></pre>
  
  <p>.html:</p>
  
  <pre><code>&lt;form action="{{ url_for('product', id=product.id) }}" method="post"&gt;
      {{ form.csrf_token }}
      &lt;h4&gt;
          {{ form.post(class='input-text qty', maxlength='9', placeholder='Price') }}
          {{ form.submit(class='button primary-btn', id='orderform') }}
      &lt;/h4&gt;
  &lt;/form&gt;
  .
  .
  .
  .
  .
  &lt;script&gt;
      $(document).ready(function(){
          $("orderform").submit(function(){
               alert("Submitted");
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>When i press the submit button the value is added to the database but i don't get any confirmation popup.</p>