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

105
Views
dependent select script for django

Help with js. I have two selects that earn them with nested list dictionaries. I don’t know how to write a script so that when choosing a brand it would be possible to select only the selected brand, after choosing send a request with the brand and model of the car

<form action="" method="post" id="dynamic_selects">
    <div class="row">
        <select class="form-select" aria-label="Default select example" id="marka">
            <option value="0">Select auto</option>
            {% for car in marka_sorted %}
                <option value={{ car }}>{{ car }}</option>
            {% endfor %}
        </select>
    </div>
    
    <div class="row">
        <select class="form-select" aria-label="Default select example" id="model" disabled>
            <option value="0">Select model</option>
            {% for marka, model in marka_sorted.items %}
                {% for model_select in model %}
                    <option value={{ model_select }} class={{ marka }}>{{ model_select }}</option>
                {% endfor %}
            {% endfor %}

        </select>
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!