I try to display a decimal value.
// My Model
[DisplayFormat(DataFormatString = "{0:N2}", ApplyFormatInEditMode = true)]
public Decimal? Tax_percent { get; set; }
// My View (Try with EditorFor also)
<div class="form-group form-md-line-input form-md-floating-label no-hint">
<input type="number" name="Tax_percent" class="form-control@(!Model.Tenant.Tax_percent.HasValue ? "" : " edited")" value="@Html.DisplayFor(m => m.Tenant.Tax_percent)" step="0.01" min="0" max="100">
<label>@L("TaxPercent")</label>
</div>
The error message appear when i open my modal:
The specified value "0,00" is not a valid number. The value must match to the following regular expression: -?(\d+|\d+.\d+|.\d+)([eE][-+]?\d+)?" jquery.min.js:3
Thanks