First Letters of the full name

Asked

Viewed 64 times

0

I would like when the user typed in the Full Name input to appear like this ex: João Alves with the first 2 uppercase initials

Thanks.

Code: inserir a descrição da imagem aqui

2 answers

3

Just use the property text-Transform of the CSS

Directly in HTML

<input style="text-transform:capitalize"....

By a. css file

tag{
    text-transform:capitalize;
}
  • Thank you for Ajda

0

Use the "text-Transform: capitalize;" property in your css.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.