Ask Your Question
1

What is the method to turn off browser autocomplete for the Input element in React.js?

asked 2022-05-26 11:00:00 +0000

djk gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-12-05 10:00:00 +0000

lalupa gravatar image

To disable browser autocomplete for an input element in React.js, you can set the "autocomplete" attribute to "off" as follows:

<input type="text" name="username" autoComplete="off" />

This will prevent the browser from suggesting previously entered values for the input field.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-05-26 11:00:00 +0000

Seen: 9 times

Last updated: Dec 05 '21