Answers for "how to know the max number of chars in a input text"

1

text limit in html

<span style="
  display:inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 13ch;">
Lorem ipsum dolor sit amet
</span>
Posted by: Guest on October-28-2020
0

how to limit input type max length

<input name="somename"
    oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
    type = "number"
    maxlength = "6"
 />
Posted by: Guest on April-30-2020

Code answers related to "how to know the max number of chars in a input text"

Browse Popular Code Answers by Language