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

133
Views
get selected option of multi dropdown jquery angular dosn't work

Hello I'm workig with jquery in angular app, I want to get all selected option of many select list in my component ts file with jquery, what I did :

    $("#selectProp select").each(() => {

      var t = $(this);
      console.log($(this))
      //arr.push($(this).val());
    });
    console.log(arr)

Here with this I want to get the select with selected option from user but in this I get :

0 => jQuery.fn.init(1)   AppComponent 

Here I get the values declared in export class AppComponent

And Here my Html :

 <div id="selectProp">
              <div *ngFor="let BR of splits; let i = index">
                <label for="pet-select">Morceau {{i + 1}}</label>
                <div>
                  <select id="selectAttribut">
                    <option *ngFor="let prop of lstProp512" [value]="prop.Text">
                      {{prop.Text}}
                    </option>
                  </select>
                </div>
              </div>
            </div>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Like this it is working :

    $('#selectProp select').each((index, element) => {
      var conceptName = $(element).find(":selected").text();
      console.log(conceptName);
    })

about 4 years ago · Juan Pablo Isaza Report
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!