title: How render template after post data with ajax in FLASK?
body: <p>I have a problem, i cant open render_template after post data with ajax. this is my ajax code. </p>
  
  <pre><code>if ($(this).attr("value") == "button-three") {
  
      var skoring = getRadioVal(document.getElementById('mentodeNegasi'),'negasi')
  
      $.ajax({
          data: { metodeSkoring: skoring },
          type: 'POST',
          url: '/evaluasiModel'
      })
  }
  </code></pre>
  
  <p>and this is my server code. </p>
  
  <pre><code>@app.route('/evaluasiModel', methods=['POST',"GET"])              
  def evaluasiModel():
      metodeSkoring = request.form['metodeSkoring']
      metodeSkoring = int(metodeSkoring)
      return render_template("evaluasiModelKlasifikasi.html", hasilSkoring = metodeSkoring)
  </code></pre>
  
  <p>i hope after post data ajax to "def evaluasiModel()", I can open render_template "evaluasiModelKlasifikasi.html" and get data metodeSkoring to show in this template. </p>