I want to auto insert a colon (:
) after every 2 character in my input:
HTML
<input nz-input type="text" appLimitInput="textAndNumbers" name="mac"
formControlName="mac" (keydown.space)="$event.preventDefault();"
onDrag="return false;" onDrop="return false;" onPaste="return false;">
Desired affect:
When I try to input AB
then it will automatically add colon then when I type another text which is CD
then It will be like this AB:CD
then when I try to delete/erase the CD
then It will auto delete/erase the colon.
AB:CD:EF:GH:IJ:KL