Things You'll Need
Instructions
Purchase a spray can of electronic contact cleaner from an electronics store. It will come with a straw-like tube that fits in the nozzle of the spray to enable you to accurately direct the spray.
Remove the strings from the guitar. Unfortunately, the toggle switch's contacts on most guitars are not accessible without exposing the guitar's electronics.
Unscrew the guitar's pick guard and carefully lift it up and flip it over. Be mindful of any thin wires that connect parts on the circuit board, the guitar jack and other components. Often, an electric guitar's toggle switch, volume and tone controls will be mounted together.
Locate the toggle switch and spray some electronic cleaner onto the contacts. Move the toggle switch back and forth through all its positions a dozen or more times to spread the cleaning fluid and for the switch contacts to wipe off debris.
Plug the guitar into an amplifier and move the toggle switch through its positions to see if the problem is solved. If not, repeat the cleaning procedure. Reassemble the pick guard, being careful not to pinch any small wires between the pick guard and the guitar's body.