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

158
Views
Trigger change events on two <select> elements using jquery

I have two select elements and would like to tigger a change event on both at the same time. With only one select element, I would do the following:

HTML

<select class="check">
    <option value="one">one</option>
    <option value="two">two</option>
</select>

JQuery

$('.check').change(function(){
  var data= $(this).val();
  alert(data);            
});

$('.check').val('two').trigger('change');

Does anyone know how to set the first element (regardless of value) in both select elements?

<select class="check">
    <option value="one">one</option>
    <option value="two">two</option>
</select>

<select class="check">
    <option value="three">three</option>
    <option value="four">four</option>
</select>

Many thanks in advance!

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