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

145
Views
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 answers
Answer question

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 Report

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 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!