Strongly-Typed radiobutton in ASP.Net MVC
Hi guys, I created an enum and a viewmodel for my strongly-typed radiobutton. But I wonder, why is it, that the first radio button is always checked or selected? Is it possible to unchecked it without using a jquery?
Sunny SharmaPosted Oct 7, 2013, 4:07 AM
Set it to false instead of true then.
In my previous post I meant that you need to set checked property to true for the button you want to see checked by defauilt.
Hope you got the pioint!
Happy Coding :)
boycotoPosted Oct 7, 2013, 3:40 AM
Sunny SharmaPosted Oct 7, 2013, 3:32 AM
Add a checked HTML attribute to the radio button control.
try this: