suppose options = ["low", "medium", "high"]
{{#each optionValue in options}}
<span>
<input type="radio" id="screen-risk-{{optionValue}}" name="riskRating"/>
<label for="screen-risk-{{optionValue}}" name="checkbox"> Low </label>
</span>
{{/each}}
how to append optionValue to the input id and label for attribute dynamically?
Without using any helpers, it should come like screen-risk-low, screen-risk-medium, screen-risk-high
Aucun commentaire:
Enregistrer un commentaire