Hi I have the following textbox
@Html.TextBoxFor(r => model.Hours, new { @class = "form-control NumberVal input-sm text-right", @data_cp_min_value = 0, @data_cp_max_value = 10000, @Value = String.Format("{0:#,##0}", model.Hours) })
howevery my js validation returns true when i do IsNaN(input.val())
Also when submitting the form the decimal part is lost as the Value is being submitted.
How can i solve this?