Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vue max characters html input

// HTML
<input :maxlength="max"/> // Max Amount of characters in this input = 20

// JS
export default {
  data(){
    return {
      max: 20
    }
  }
}
 
PREVIOUS NEXT
Tagged: #vue #max #characters #html #input
ADD COMMENT
Topic
Name
5+9 =