Skip to content
0 / 31 done
Elements Beginner Exercise 10 of 31

Disabled Buttons

Buttons that stay disabled until the user types something.

Practice area

1. Enable the button when the input has text

The Send button is disabled while the message is empty or only spaces.

0 characters

2. Enable the button when every field is valid

Register stays disabled until the username has at least 3 characters and the email is valid.

Required: 3 or more characters.
Required: a valid email address.