Answers for "make sure all letters in an html input field is capitalized by default"

0

capitalize input text html

//for angular
(input)="onInput($event)"  

onInput(event) {
    event.target.value = event.target.value.toLocaleUpperCase();
}

//for HTML
(onInput)="onInput($event)"  

onInput(event) {
    event.target.value = event.target.value.toLocaleUpperCase();
}
Posted by: Guest on December-26-2020

Code answers related to "make sure all letters in an html input field is capitalized by default"

Browse Popular Code Answers by Language