I have one razor Input Text which will accept only numbers but with 3 decimal places but when i am trying to enter decimal after any number, it is deleting the decimal. following is the code for my input
@Html.TextBoxFor(Function(Model) Model.ManifestDetail(0).md_weight,
New With {Key .[class] = "text-control text-right",
.[required] = "required",
.[maxlength] = "30",
.[Style] = "width:90px",
.[type] = "number",
.[min] = "0",
.[Step] = "0.001"})
Kindly help me if i am making any mistake.