I'm using jsRender and want to create a <select> tag which lists numbers for 1 to 10.
I'm getting the index I want to select from model.
i.e to create a dropdown like this:
<select name="sets">
<option value="1">1</option>
<option value="2" selected="selected">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
Where the model had the number "2" - so it had to be selected.
How can this be achieved using jsRender?
My Model is something like { selected: 2 }
Thanks!