How to disable input conditionally in vue.js?

Posted by Jennifer | Updated on

To remove the disabled prop, you should set its value to false. This needs to be the boolean value for false, not the string ‘false’.

So, if the value for validated is either a 1 or a 0, then conditionally set the disabled prop based off that value.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers