Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

112
Views
Deshabilitar autocompletar campo de entrada (JS puro)

¿Alguien sabe cómo deshabilitar el autocompletado/autocompletado de entrada en 2021 usando JS puro?

He intentado:

 <input type="password" autocomplete="off" /> <input type="password" autofill="off" /> <input type="password" autocomplete="new-password" /> <input type="password" autofill="none" />

etc.

También intenté usar jquery.disable-autofill y npm disabledautofill de las soluciones de stackoverflow

Sería bueno si alguien puede compartir algunas soluciones más.

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

una cosa más que podemos usar autocompletar en la etiqueta de formulario también como ver a continuación

 <form action="/form/submit" method="get" autocomplete="off">

o en JS

 $(function() { setTimeout(function() { $("input").val(""); }, 500); });
about 4 years ago · Juan Pablo Isaza Report

0

Pruebe esta solución en JS

 clearAutoFIll(); function clearAutoFIll(){ var inp = document.querySelectorAll("[autocomplete=off] input"); for(var x=0; x < inp.length; x++){ inp[x].value = ""; } }
 <form autocomplete=off> <input type=text name="phone" /> </form>

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!