Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

html vue input enabled

<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.17/vue.js"></script>
<div id="app">
  <button @click="disabled = (disabled + 1) % 2">Toggle Enable</button>
  <input type="text" :disabled="disabled == 1">
    
  <pre>{{ $data }}</pre>
</div>
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #html #vue #input #enabled
ADD COMMENT
Topic
Name
9+7 =