title: Get the dropdown selected value in bootstrap python flask
body: <p>I have this dropdown that is made with bootstrap with a couple of options and I want to get the data of the selected value with flask.</p>
  <p><strong>HTML:</strong></p>
  <pre class="lang-html prettyprint-override"><code>&lt;div class=&quot;dropdown&quot;&gt;
              &lt;button class=&quot;btn btn-secondary dropdown-toggle text-right &quot; type=&quot;button&quot; id=&quot;dropdownMenu3&quot; data-toggle=&quot;dropdown&quot; aria-haspopup=&quot;true&quot; aria-expanded=&quot;false&quot;&gt;
                  age
              &lt;/button&gt;
              &lt;div class=&quot;dropdown-menu pre-scrollable&quot; aria-labelledby=&quot;dropdownMenu3&quot;&gt;
                  {% for i in range(110) %}
                      &lt;button class=&quot;dropdown-item text-right &quot; type=&quot;button&quot;&gt;{{i}}&lt;/button&gt;
                  {% endfor %}
              &lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  <p><strong>Python:</strong></p>
  <pre class="lang-py prettyprint-override"><code>from flask import Flask, render_template, request
  def create_app():
      app = Flask(__name__)
  
      @app.route('/', methods=['POST', 'GET'])
      def home():
  
  
          return render_template(&quot;home.html&quot;)
       
      return app
  </code></pre>