Is there a way to manipulate the activity and inactivity of buttons using Javascript?
Buttons - active and inactive
Collapse
X
-
Are you looking for the disabled property?
Or do you need to set event handlers?
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target. The event listener to be removed is identified using a combination of the event type, the event listener function itself, and various optional options that may affect the matching process; see Matching event listeners for removal.
Comment