173
rated 0 times
[
174]
[
1]
/ answers: 1 / hits: 44948
/ 5 Years ago, wed, may 8, 2019, 12:00:00
My goal is to limit the number of digit user can enter in the input field. So a user can only input 10 digits. I tried min and max still doesn't work
Here's the code
<input
v-model=amount
type=number
>
<script>
export default {
data() {
return {
amount: 7800
}
}
}
</script>
Right now i can add more than 10 digits
More From » vue.js