0

I want to remove the default autocomplete from all input fields of my web application using CSS only. I will put that CSS in the header of my web application to get the effect of that css on all web pages. I can't put autocomplete=off in all input fields individually. as there are more than 200 input in the application.

2 Answers 2

2

It is not possible since autocomplete=off is not a css attribute, but a html5 one.

Maybe you want to do it with js by setting element's attr, or just find and replace those 200 entries once and for all.

More info on autocomplete=off can be found in MDN.

Sign up to request clarification or add additional context in comments.

2 Comments

Can you suggest how can I do that using JS
refer to stackoverflow.com/questions/2860712/… but personally I would prefer editing 200 html tags in a one-off (semi-)automated way using vim or sublime
0

It's not possible in CSS. You can achieve it by using JS.

1 Comment

Okay is it possible to get the effect on all pages using JS?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.