Disables the element and sets its enabled
property to false
.
The disable()
function returns a Promise that is resolved when the
element's enabled
property has been set to false
.
To learn about the behavior of a disabled element,
see the enabled
property.