I would like get in input capitalize first letter when I'm starting write.
<b-form-input v-model="formSurname" id="Surname" name="Surname" placeholder="Surname" type="text" maxlength="50" required> </b-form-input>
I have also filter for this. But v-model="formSurname | capitalize" doesn't work I tried :value="formSurname | capitalize" but it doesn't work too
Vue.filter("capitalize", function (value) {
if (!value)
return '';
value = value.toString();
return value.charAt(0).toUpperCase() + value.slice(1);
});
How to make an input to change my first letter in real time?