Looking to validate the inputs from a form using vuejs. Also, if the data is pre-populated, I want the inputs to switch to readonly mode.
<input type="number" name="cf_962" class="form-control" v-model="fillProfile.cf_962" step="0.1" :readonly="(fillProfile.cf_962>0.00) ? true : false">
The current issue I'm facing is that whenever I input a value, if it's greater than 0, the input becomes read-only automatically, which is not desired. How can I achieve this in vuejs 2? Thanks for your help.