jim
0
Q:

input max length


  
    <form 
    action="/action_page.php">

  <label for="username">Username:</label>
  <input type="text" 
    id="username" name="username" maxlength="10"><br><br>
  <input 
    type="submit" value="Submit">

    </form>
  
 
1
<input maxlength="10" />
0

<input type="text" id="username" name="username" maxlength="10">
 
3
<input name="somename"
    oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
    type = "number"
    maxlength = "6"
 />
0

New to Communities?

Join the community