Tuesday, June 8, 2021

How to get multiple value from dropdown in angular ?

 Hello Friends 

 In this artical  i will share you "How to get  multiple value from dropdown"  Hope it will help you.

The sample code are as below:-

 <div class="col-12 mt-4">
   <label>Account Name:</label>
      <select [(ngModel)]="dlAccountname" id="dlAccountname" name="dlAccountname"
                        class="form-control full-width">
             <option value="" selected="selected">Please Select Account Name</option>                      
               <option *ngFor="let item of AccountList;" [ngValue]="item" > 
                   {{ item.Canvas_Name }}
                            
                        </option>
                    </select>
                </div>

No comments:

Post a Comment