Answers for "input maxl length js"

8

how to specify amout of letters in inputfield in css

<input maxlength="25" placeholder="name" />
Posted by: Guest on April-15-2020
0

javascript set max length of string

String.prototype.trimEllip = function (length) {
  return this.length > length ? this.substring(0, length) + "..." : this;
}
Posted by: Guest on January-06-2020

Browse Popular Code Answers by Language