css button text uppercase code example
Example 1: input uppercase with css
input {
text-transform: uppercase;
}
Example 2: input uppercase with css
<input oninput="let p = this.selectionStart; this.value = this.value.toUpperCase();this.setSelectionRange(p, p);" />