Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
225 views
in Technique[技术] by (71.8m points)

html - How to detect or avoid autocomplete in multiple inputs with similar names?

Here is my HTML (live example https://jsbin.com/juciheneqi/edit?html,output):

<input type="text" name="emails.0" /><br/>
<input type="text" name="emails.1" /><br/>
<input type="text" name="emails.2" />

If you have autocomplete (aka auto-fill) enabled in your browser and you double click in any of those inputs -> choose a value for the autocomplete list -> ALL the inputs with receive this value!
Even having different names!

Is there a way to avoid it?
The less hacky - the better =)

question from:https://stackoverflow.com/questions/65934523/how-to-detect-or-avoid-autocomplete-in-multiple-inputs-with-similar-names

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...