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

175
Views
deshabilitar todos los elementos de formulario dentro de div

¿Hay alguna manera de deshabilitar todos los campos (área de texto/campo de texto/opción/entrada/casilla de verificación/enviar, etc.) en un formulario diciendo solo el nombre del div principal en jquery/javascript?

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Intente usar el selector de :input , junto con un selector principal:

 $("#parent-selector :input").attr("disabled", true);
over 4 years ago · Santiago Trujillo Report

0

$('#mydiv').find('input, textarea, button, select').attr('disabled','disabled');
over 4 years ago · Santiago Trujillo Report

0

Para jquery 1.6+, use .prop() en lugar de .attr() ,

 $("#parent-selector :input").prop("disabled", true);

o

 $("#parent-selector :input").attr("disabled", "disabled");
over 4 years ago · Santiago Trujillo 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!