How to set autocomplete off globally in a project?
1
Autocomplete attribute can be set off globally in project by using following simple javascript code.
Add it in the header file of project:
<script>
$(document).ready(function() {
$("input, select, textarea").attr("autocomplete", "off");
});
</script>
Set autocomplete off in a form:
<form method="post" action="" autocomplete="off">
Set autocomplete off for a input field, select or textarea:
<input type="text" name="email" autocomplete="off">