Tutorialsplane

Vue.js enable disable button


We can use disable attribute to enable and disable the button conditionally. Here in this tutorial, we are going to explain how you can use this attribute in vuejs to make a button enabled or disabled.


Vue.js enable disable button Example

You can make a button enabled or disabled simply using the below-

Example:

<div id="app">
		
	<button>Enable/Disable</button>
</div>
 

Try it ยป

Output of above example-