[Solved] Put specified index from an array in the top of select box

I would suggest to just mark “Turcia” as selected. Handlebars Helper: (Javascript version) Handlebars.registerHelper(‘eq’, function(a, b, block) { return a == b ? block.fn(this) : block.inverse(this); }); Template: {{#each oForm.lCountry}} <option value=”{{@key}}” {{#eq this ‘Turcia’}}selected=”true”{{/eq}}> {{this}} </option> {{/each}} Output: <option value=”2″ > Afganistan </option> … <option value=”6″ selected=”true”> Turcia </option> Now “Turcia”, will be selected … Read more