How to make Alert-prompt accepting only 6 digit number/character


#1

Below is my code -

inputs: [
{
name: ‘otp confirmation’,
placeholder: ‘Enter one time password’,
type : “tel”,
id:“confrminput”
},
]