class CustomerModel { public string CustomerName public string Address public decimal Salary } //Html File
@Html.EditorFor(model => model.CustomerName, new { htmlAttributes = new { @class = "form-control datepicker w-100" } }) @Html.EditorFor(model => model.Address, new { htmlAttributes = new { @class = "form-control datepicker w-100" } }) @Html.EditorFor(model => model.Salary, new { @id="netHrs", htmlAttributes = new { type = "number", @class = "form-control w-100" } })