I am trying to disable the autocomplete function in the browser and set the autocomplete = "off" attribute to Input. I tried using the code below, but it does not put autocomplete = "off" in the generated html input tag. What is the right way to do this?
@Html.EditorFor(model => model.ConfirmPassword, new { autocomplete = "off" })
Tomas source
share