Is it possible to add attribute to an input element via CSS

I want to add autocomplete attribute to input elements across application but adding it via javascript file will take some time and I cannot directly add to html code as well. But I do have global CSS file, so folks is it possible to add attribute to an input element via CSS ?
Any help is appreciated !!

I’m afraid it is not possible. You’ll need to be able to change the HTML or use JS to add the attribute.

you can use querySelectorAll and a selector of the kind [type="text"] and you can select all the elements

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.