@Html.RadioButtonFor(Model => Model.Location,"Location") @Html.LabelFor(Model=>Model.Location,"Location") @Html.RadioButtonFor(Model=>Model.Model,"Model") @Html.LabelFor(Model=>Model.Model,"Model") @Html.RadioButtonFor(Model=>Model.MovableUnit,"MU") @Html.LabelFor(Model=>Model.MovableUnit,"MU") <input id="Location" name="Location" type="radio" value="Location" /> <label for="Location">Location</label> <input id="Model" name="Model" type="radio" value="Model" /> <label for="Model">Model</label> <input id="MovableUnit" name="MovableUnit" type="radio" value="MU" /> <label for="MovableUnit">MU</label>
所有上述单选按钮如何使用通用名称=“radiobtn”?
问题是我想一次只选择一个单选按钮,但在这种情况下,所有这些都可以同时选择.