我需要在我的反馈表中添加两个单选按钮
<input type="radio" id="startNowYes" value="true" name="startNow" checked="checked"> Yes
<input type="radio" id="startNowNo" value="false" name="startNow"> No
我在我的模型中添加
namespace CorePartners_Site2.Models
{
public class CareerForm
{
//...
public StartNow Start { get; set; }
}
public enum StartNow
{
Yes,
No
}
}
但是有人可以解释我如何在我的视图中添加单选按钮吗?我无法理解。