title: How to make jinja 2 display different divs if different options are selected
body: <pre class="lang-html prettyprint-override"><code>{% extends "main.html" %}
  {% block content %}
  &lt;h2&gt; Please select a sector you would like to iterate through:&lt;/h2&gt;
  &lt;br /&gt;
  &lt;form method="POST" action=""&gt;
  &lt;input type="text" name="statement" /&gt;
  &lt;input type="submit" /&gt;
  Do you wish the output to be sorted?:
  &lt;select&gt;
  &lt;option value="yes"&gt;Yes&lt;/option&gt;
  &lt;option value="no"&gt;No&lt;/option&gt;
  &lt;/select&gt;
  &lt;/form&gt;
  {% if request.args.get['yes'] %}
  dfghjhkl;nbovicudhbnrfmg,hklbjuvhcndmf,
  {% elif request.args.get['no'] %}
  12345676434565456765456
  {% endif %}
  {% endblock %}
  </code></pre>
  
  <p>What I want is to display different information depending on what was selected within options. I just started Flask and Jinja2, so I am not so familiar with this type of coding.</p>