Skip to content
Sign upLog in
← Back to Community

why is my button broke

Profile icon
Hedgehawk11

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

Answered by IntellectualGuy [earned 5 cycles]
View Answer
Voters
Profile icon
Hedgehawk11
Comments
hotnewtop
Profile icon
IntellectualGuy

You would do it like this

<button onclick="alert('gg')" disabled>no clicking me</button>
Profile icon
Hedgehawk11

@IntellectualGuy
ty

Profile icon
icodeletion

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