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

176
Vistas
Auto select first available dropdown option depends on first field

Here at WooCommerce i have 2 fields to choose before add to cart will be active: http://mnowak.devispace.pl/produkt/piekna-liliowa-sukienka-dla-dziewczynek/

If i will choose anything at the field "rozmiar" it will be only 1 option to choose always at the field "wiek dziecka". How to make "wiek dziecka" choosing automatically after "rozmiar" is chosen by user?

There are ids: 1st field - select#pa_rozmiar
2st field - select#pa_wiek-dziecka

So i need to do that, when user choose something at select#pa_rozmiar and if at 2nd field it will be left only on possible answer to choose i want system to automatically choose that one possible answer at select#pa_wiek-dziecka. At a default WooCommerce asks to choose at first at one select, after at second select and only after that it will be possibilty to add at cart.
screenshot of select fields

about 4 years ago · Santiago Gelvez
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