Skip to content

Instantly share code, notes, and snippets.

@coffeejunk
Created May 12, 2011 14:38
Show Gist options
  • Save coffeejunk/968624 to your computer and use it in GitHub Desktop.
Save coffeejunk/968624 to your computer and use it in GitHub Desktop.
<form>
<select name="menu" onChange="javascript:parent.location =
this.form.menu.options[this.form.menu.selectedIndex].value;">
<option value="lol">lol</option>
{% for country in countries %}
{% if country == active_country %}
<option selected="selected" value="/{{ country.english_name|escape }}">{{ country.english_name }} {{ country.arabic_name }}</option>
{% else %}
<option value="/{{ country.english_name|escape }}">{{ country.english_name }} {{ country.arabic_name }}</option>
{% endif %}
{% endfor %}
</select>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment