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

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