I have a drop down menu that is created in the following fashion:
<select id="ip_addr">
{% for host in hosts %}
<option value="{{ host.ipaddress }}">{{ host.ipaddress }}</option>
{% endfor %}
</select>
and I don't know how to set the default value. Normally I would just say something like
<option value="0.0.0.0" selected>0.0.0.0</option>
but since I am populating this drop down menu with a loop I don't know how to make sure that the option I want is selected. I'm sure there is a really straight forward way to do this, but I am still pretty new to HTML/JavaScript/Django.