Testing a disabled button
When the “Save” button is activated:
- The
disabled
attribute will be added to the button.
- The button text will change to “Saving...”.
After 10 seconds:
- The
disabled
attribute will be removed from the button.
- The button text will changes back to “Save”.
- A message will be added above the form.
- Focus will be sent to the message.
Example