Enable and Disable Button - how to

To clarify for others, this is what the code should look like:

<button id="btn1" class="btn btn-success" dmx-on:click="btn2.disable(-1)">Button</button>
<button id="btn2" class="btn btn-secondary" dmx-bind:disabled="1">Button</button>
4 Likes