I have the following code:
<tr>
<td class="tdstyle">
<i class="fa fa-phone iconPos" aria-hidden="true"></i>
<span>@Model.LicenseHolder.LegalPerson.ContactDetails.First(x => x.ContactDataType.Name == "BillingPhone").Detail</span>
@Html.HiddenFor(x => x.LicenseHolder.LegalPerson.ContactDetails.First(y => y.ContactDataType.Name == "BillingPhone").Detail)
</td>
</tr>
The generated input-field from above code Is this:
<input id="Detail" name="Detail" type="hidden" value="0730730037" />
This Is incorrect because It Is not binded to the Model. How can I generate a correct hidden input of this so the binding works?