Rohan Ramani

Rohan Ramani

  • NA
  • 786
  • 138.4k

Fill Textbox automatically from typing into another textbox

Feb 12 2019 12:30 AM
Hi, I am working in Angular.
I have two text box 1. is Email and 2. is Username
 
I want to fill textbox username from email. because it has same value. textbox username is disabled. so how can I fill same value from email.
  1. Email : <input type="text" required email #email="ngModel" name="email" class="form-control" [(ngModel)]="userModel.email" placeholder="Email"/>  
  2.   
  3. User Name : <input type="text" required #userName="ngModel" name="userName" class="form-control" [(ngModel)]="userModel.userName" placeholder="User Name" disabled/>  
 

Answers (1)