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

192
Views
ocultar el segundo menú desplegable hasta que el primero no esté seleccionado (problema refrescante)
hi i have two dropdown dynamic one . my question is when i load my chrome page/refresh the page all the dropdown value are visible without selecting first dropdown option value <script> /* code for :select scheme, relative to department shown */ $('#department').on('change', function () { var departments = $('option:selected', this).attr('attr'); $("#schemes option").each(function (i) { if ($(this).attr('subattr') == departments) { $(this).css({ display: "block" }); } else { $(this).css({ display: "none" }); } }); }); </script> // this is the script for both the dropdown department is first dropdown id and schemes is second dropdown id //

Nota:
todas las opciones dinámicas funcionan bien, como cuando selecciono en el primer menú desplegable, se muestran sus valores relacionados, pero cuando actualizo la página y selecciono el segundo menú desplegable, todos los valores se muestran en el menú desplegable sin seleccionar el primer menú desplegable y no estoy en exceso según la opción seleccionada tanto en el menú desplegable cuando actualizo la página

gracias de antemano no puedo obtener respuesta por favor ayúdenme

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!