I want to modify the dropdown of this form. Here the year starts with 1950 on top and ends to 2006 on bottom. I want the year should show in reverse order. Means the year 2006 will show on top and 1950 in bottom. Can anyone please help me?
The code is here-
<div class="col">
<select class="form-control" name="birth_year">
<option value="none">{__("Year")}</option>
{for $i=1950 to 2006}
<option {if $user->_data['user_birthdate_parsed']['year'] == $i}selected{/if} value="{$i}">{$i}</option>
{/for}
</select>
</div>
I have tried to put 2006 to 1950. But if I do so, the form disappear.