vendredi 20 février 2015

How to use a RadioButtonList and get the selected value with Ember?

I'm new to Ember and I'm doing an asp.net web api that's called using Ember and on a form I'm making I want to be able to get the value the user selected. How do I do this?


An example of one of the RadioButtonLists I want to use with Ember:



<div class="form-group">
<label for="nationalTransportation">3.1. NATIONAL TRANSPORTATION (*)</label>
<div class="radio">
<label><input type="radio" name="National Transportation" value="Not Required">Not Required</label>
</div>
<div class="radio">
<label><input type="radio" name="National Transportation" value="Public Transportation">Public Transportation</label>
</div>
<div class="radio">
<label><input type="radio" name="National Transportation" value="Own vehicle">Own vehicle (subject to approval)</label>
</div>
<div class="radio">
<label><input type="radio" name="National Transportation" value="Car Rental">Car Rental (subject to approval)</label>
</div>
</div>

Aucun commentaire:

Enregistrer un commentaire