Search
 
SCRIPT & CODE EXAMPLE
 

HTML

conveert text to uppercase in input field

<input type="text" class="normal" 
       name="Name" size="20" maxlength="20" 
       style="text-transform:uppercase" /> 
Comment

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();
}
Comment

PREVIOUS NEXT
Code Example
Html :: input type="file" and display image 
Html :: html email links 
Html :: html shell 
Html :: gender selection in html 
Html :: input number maxlength 
Html :: font awesome reload icon 
Html :: how to change the logo in the title of a webpage 
Html :: bootstrap 4 center div 
Html :: html accept png and jpg 
Html :: vertical break html 
Html :: twig foreach key value 
Html :: auto update copyright year javascript 
Html :: tailwind cdn v3 
Html :: ngclass else 
Html :: favicon in html 
Html :: django html checkbox if condition chexked 
Html :: add link to text html 
Html :: html lazy loading images 
Html :: html center body 
Html :: fa fa-home 
Html :: span limit text length 
Html :: meta refresh 
Html :: react bootstrap navbar fixed 
Html :: increase video speed html5 
Html :: thead position sticky 
Html :: How do you require 8-digit password in an input 
Html :: how to set an element affected by tab 
Html :: basefont tag in html 
Html :: how to redirect a page to another url in html 
Html :: html5 iframe youtube loop 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =