Skip to content
Advertisement

Based on length how to check values in Vuejs? [closed]

JavaScript

JavaScript

JavaScript

With length i need to disable, untill user enterd equal characters in both fields. i need to check both field values.

Can i do this by using length?? if yes how can i check with above code.

Issue is at present it is checking only for, If entered password is matched with first character in confirm password field, it is proceeding.

Advertisement

Answer

I don’t know if i understood correctly but i think you can simply add && user.password.length>8 or since you are using vuelidate you can add this validation: https://codepen.io/sibellek/pen/oNBPVbN

JavaScript

and that way you can keep your code the same way

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement