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

146
Views
Change dropdown selected value in loop

I am looping through available appointments and trying to change the color of the selected value in the dropdown(more than 1 dropdown in the list). I can see the color is different for each value but when I select it changes it back to black.

    .appt-status select option[value="0"] {
        color: #3EA47B;
    }

    .appt-status option[value="1"] {
        color: #3EA47B
    }

    .appt-status option[value="2"] {
        color: #FF0000;
    }

    .appt-status option[value="3"] {
        color: #FFA927;
    }
<!-- begin snippet: js hide: false console: true babel: false -->

 <div class="appointmentList" data-bind="foreach: visibleAppointments">
      <select class="form-control appt-status" data-bind="value: confirmationStatus, event:{ change: $parent.statusChanged}" >
                    <option data-icon="" class="status-list" value="1" > Confirmed</option>
                    <option class="status-list" value="2" >Reschedule</option>
                    <option class="status-list" value="3" >Pending</option>
                    <option class="status-list" value="0" >Not opted-in</option>
                </select>
 </div>

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!