Ask coding questions

← Back to all posts
why is my button broke
dbates (10)

so I made this but the "disabled" tag is not working can you guys help

Answered by IntellectualGuy (681) [earned 5 cycles]
View Answer
IntellectualGuy (681)

You would do it like this

<button onclick="alert('gg')" disabled>no clicking me</button>
IcynDevz (763)

Your button tag should look like this
<button disabled=True onclick="alert('gg')">no clicking me</button>