Created
May 12, 2011 14:38
-
-
Save coffeejunk/968624 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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