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

239
Views
Disable validation for a single input via Javascript (but still POST the value)

This answer explains how to disable all inputs of a form, I required to just disable a single input of a form.

I require to disable validation for a single field (note the server must still receive the value (i.e. it must be POSTED, and thats why I can't use disable).

In my scenario when a sub form is marked for deletion, it is hidden, but the backend still requires to receive the form so it can process the deletion, however it may fail validation, but the form is now hidden, so the submit silently fails. The input type of the form maybe be various types, e.g. radios, text, url email, thats why I don't just want to set the inputs to "" and remove required, but may have to resort to this.

What I have tried:

<input type="email" disabled>    <!-- need it to be posted -->
<input type="email" novalidate>   <!-- only works on forms, html5 is so inconsistent -->

about 4 years ago · Juan Pablo Isaza
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!