One of hundreds of answers available with our premium content service.
A: This script sets a simple boolean variable called enabled when the page loads. A function called disable() is attached to an onclick event handler on the first image button, and an enable() function is attached to the second. The script includes alerts that notify the state of the system.
… full answer hidden
Premium members click below for full answer
How can I toggle button images to enable and disable them?
We love social media, but we do not expect you to create yet another public outpost on the Web.