Sunday, 24 April 2016

ASP.NET MVC Disable Auto complete on forms globally

If you want to turn off browser auto complete on form text boxes

Add the code block below in your _layout.cshtml file or
better create a new JS file and add it under your bundle.

$(document).ready(function () { $("input").attr("autocomplete", "off"); });

No comments:

Post a Comment