In these code I have a strange situation:
@foreach (var subs in getSubscriptionTypes())
{
<p>@Html.RadioButton(subs.LengthMonths.ToString(), subs.Price) @subs.LengthMonths</p>
}
I get properly all of subs
, but radiobuttons behave very strange - I can check all of radiobuttons, but I want to check only one (one is true
, then rest is false
). How to repair it?
Regards.