How can i set selected = true
and disable this radio button
<%= Html.RadioButtonFor(m =>m.AddToLevel ,new {id = "rdSameas" }) %>
The second parameter is the value: true
for selected:
<%= Html.RadioButtonFor(m => m.AddToLevel, true, new { id = "rdSameas", disabled = "disabled"}) %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With