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

217
Views
How to get multiple values using jq

I want to get multiple statuses from a select when I press a button, there are about 5 options I either want to be able to get option 1 and 2 and 3 or all 5 of them but not empty ones.

What I am already doing will return 1 specific option which is optionA and If i replace this with .val() it will just get the first option in the list

  $('#myButton').on('click',function(){
      $('.filter__status').val("optionA");
      loadList();
  });

select option below

<div class="inputRow">
   <label>Status:</label>
    <select class="filter__status" id="status" name="index[filters][status]">
       <?php foreach (Options::statuses() as $status): ?>
          <option value="<?= $status ?>" <?= ($_GET['status'] === $status ? "selected" : "") ?>><?= $status ?></option>
       <?php endforeach; ?>
    </select>
</div>
<div id="myButton" class="button large"><i></i>&nbsp;<span>Show lists</span></div>

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!