Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

143
Vistas
remove spell check on input WITH JAVASCRIPT

i have a JavaScript program that make input and a want to remove spell check.

let inp = document.createElement('input');
inp.placeholder = "enter line of code";
inp.autocomplete = "off";
//did not work
inp.spellcheck = "false";

i tried using inp.spellcheck = "false"; and it did not work however just spellcheck="false" on a input worked

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

Set an attribute instead.

const inp = document.body.appendChild(document.createElement('input'));
inp.placeholder = "enter line of code";
inp.autocomplete = "off";
inp.setAttribute('spellcheck', 'false');

about 4 years ago · Juan Pablo Isaza Denunciar

0

If you work with the JavaScript DOM spellcheck property (as opposed to the HTML spellcheck attribute), you need to assign an actual boolean value, not a string.

const inp = document.body.appendChild(document.createElement('input'));
inp.placeholder = "enter line of code";
inp.autocomplete = "off";
inp.spellcheck = false; // not "false" which is a string

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda