Guest User

Guest User

  • Tech Writer
  • 254
  • 13k

allow only numeric value in razor textbox MVC5

May 5 2022 7:55 AM

i want only numeric value enter in textbox, i am using this way but doesnt work

               @Html.TextBoxFor(i => i.pincode, new { @placeholder = "Pincode", @class = "txt-small", @maxlength = 6, @type = "number" })
 


Answers (5)