Look at the image:
I want design something like in the image, where a 4 digit one time password (OTP) is to be entered by user. Right now I have achieved th
You can use the below directive if using AngularJS
In your HTML add
In your controller add
$scope.otpInput={
size:6,
type:"text",
onDone: function(value){
console.log(value);
},
onChange: function(value){
console.log(value);
}
};
Plunker link
UI component look and feel
https://github.com/amstel91/otp-input-directive