Questo video spiega che in alcuni casi c’è bisogno di porre un limite al numero di caratteri che si possono usare nella Textarea.

Lingua: Inglese

Materia: Digitale & Tecnologia – Coding

Descrizione originale: By default, we can enter data in a textarea upto 5,24,288 characters.
In some cases, there is a need of putting a limit on the size of characters that can be typed in a textarea. So in that case, we can use maxlength attribute to control the number of characters entered in a textarea.
Like this,

<textarea maxlength=”100″></textarea>

For counting the characters in Textarea, we handle the input event which is triggered if the value of textarea is changed.
[…]

Autore: coding_dev_ (Instagram)

Data di pubblicazione: 04-01-2023

Lunghezza del video: 00:13