title: Django Template how to set the selected value to the drop down box
body: <pre><code>    &lt;select id="_count_id"&gt;
          {% for item in list_count %}
              &lt;option value="{{ item }}" {% if item==count %}selected="selected"{% endif %}&gt;{{ item }}&lt;/option&gt;
          {% endfor %}
      &lt;/select&gt;
  </code></pre>
  
  <p>Um using the above code to set the selected value to an html drop down though it wont work. count is a numnberical value and an item is any value from 1 to 99 . I cannot figure out where did i do anything wrong . Can any one help? Thank you in advance</p>