Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

142
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda