我正在提交具有 CSS 性别下拉列表的表单 如何将性别选择值提交给控制器 我得到的值为 null
<div class="regi-field-set">
<div id="ddlgender" class='selectBox' tabindex="7">
<span class='selected' id="gender">gender</span>
<span class='selectArrow'>▼</span>
<div id="disableasterisk5" style="padding-bottom:8px"><span class="required">*</span></div>
<div class="selectOptions" id="genderSelectOptions">
<span class="selectOption" id="ddlgen">male</span>
<span class="selectOption" id="ddlgen1">female</span>
</div>
</div>
<div class="regi-field-set">
@Html.TextBoxFor(model => model.DOB, new { @class = "jq_watermark", placeholder = "date of birth", tabindex = "8",id = "DOB",title = "please enter date of birth" })
<div id="disableasterisk7"><span class="required">*</span></div>
<div class="clear"></div>
@Html.ValidationMessageFor(model => model.DOB)
</div>
如何将这两个值传递给控制器表单中的所有其他字段都使用 html.helper 字段只有性别字段是 css 实现的
有没有办法将整个模型和性别选择值传递给控制器
请帮忙