Answers for "force input text to uppercase"

3

conveert text to uppercase in input field

<input type="text" class="normal" 
       name="Name" size="20" maxlength="20" 
       style="text-transform:uppercase" />
Posted by: Guest on May-19-2020
1

input uppercase with css

input { 
    text-transform: uppercase;
}
Posted by: Guest on May-12-2020
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

Browse Popular Code Answers by Language