Things You'll Need
Instructions
Unplug the lighting system from the power source to prevent accidental shock.
Take out the replacement switch. Use wirecutters to cut the lead wires from the old switch so that what you remove will be roughly the same length as the lead wires on the replacement unit. Make sure to note which wire was connected to which lead. The replacement switch has two different color lead wires. Mark down which goes where if it is not obvious.
Strip away just enough insulation from the wires to which you will connect the replacement switch to allow for them to be connected with the wire nuts.
Connect the lead wires to the main wiring using the wire nuts. Tape over the connection with electrical tape after you have secured the connection. The electrical tape prevents children from disconnecting the connection and getting an accidental shock.
Plug the unit back in and turn it on.