vendredi 6 octobre 2017

ionic get only selected checkbox value from html on submit button

I want to get all selected potion or value from array list .I m getting list and displaying to item list and checkbox,i m selecting and deselecting checkbox.so when i will submit i wantonly selected checkbox value. hare is code of html page

     <ion-item *ngFor="let job of jobs; let i= index"   >
          <ion-label ></ion-label>
          <ion-checkbox ></ion-checkbox>
        </ion-item>

when click i want only selected check boxes list or positions suppose i had selected 1,2,5 position i want that only list

Aucun commentaire:

Enregistrer un commentaire