Mehmet Emin Posted July 9, 2020 Share Posted July 9, 2020 How can I add autocomplete attributes to an input element? [DOM] Input elements should have autocomplete attributes (suggested: "new-password"): (More info: https://goo.gl/9p2vKq) <input tabindex="140" class="x-input-el" id="ext-element-40" type="password" name="O5E" placeholder="PIN" data-componentid="frmselectvisittypem_edtuserpin_0"> Thanks in advance Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 9, 2020 Share Posted July 9, 2020 3 minutes ago, Mehmet Emin said: How can I add autocomplete attributes to an input element? [DOM] Input elements should have autocomplete attributes (suggested: "new-password"): (More info: https://goo.gl/9p2vKq) <input tabindex="140" class="x-input-el" id="ext-element-40" type="password" name="O5E" placeholder="PIN" data-componentid="frmselectvisittypem_edtuserpin_0"> Hello, Can you please explain what you wanted? And seems the link is invalid. Quote Link to comment Share on other sites More sharing options...
Mehmet Emin Posted July 9, 2020 Author Share Posted July 9, 2020 https://stackoverflow.com/questions/50186223/autocomplete-new-password-and-making-them-confirm-it-via-entering-the-password-a#:~:text=Just use autocomplete%3D"new-,with the same value instantly. Google Chrome gives me a warning. I want to add an attribute to my element. Quote Link to comment Share on other sites More sharing options...
Mehmet Emin Posted July 9, 2020 Author Share Posted July 9, 2020 like this autocomplete="new-password" Quote Link to comment Share on other sites More sharing options...
Mehmet Emin Posted July 9, 2020 Author Share Posted July 9, 2020 function afterCreate(sender) { var me = sender.inputElement; if (me) { me.dom.setAttribute('autocomplete', 'new-password'); } } OK I've found it in the forum Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.