Ideally the old switch is still there so you can wire the new one up the same way as the old one. You should also see a green wire called a ground wire which.
Understanding Three Way Wall Switches
Light switch black screw. The switch also has a green terminal. The black and red wires from the white cable running between the switches get connected to either of the two brass screws on the switch. At the switch with the 122 wire going to the light connect the black 122 wire. If the switch box is metal it also must be pigtailed to the grounding wires. The grounding wire is connected both to the switch using a pigtail wire and to the second cable run passing onward to the next switch. The white wire from the new cable connects to the fixtures hot wire terminal or hot wire lead and to the other screw terminal on the switch.
As well as looking stylish there are many features and benefits including backed out captive terminal screws and concealed fixings for ease when installing. It serves as the second hot wire in the switch loop. This wire is sometimes red. The black hot wire goes to the brass screw or into the hole in the back of the device on the same side as the brass screw. This type of switch lets you turn the light off or on from more than one place in the room. The green or bare copper ground wire if the device has one attaches to the green screw terminal on the switch or to the electrical box.
The black wire from the new cable connects to the black hot wire in the fixture box and to one of the terminals on the single pole switch. You should see two black wires each connecting to a different screw on the right side of the switch. These are called terminal screws. The black wire from the circuit breaker panel gets attached to the black screw on the 3 way switch. Within the extensive range of black switches and sockets from big trusted brands there is a product to suit any room in the house office or workplace. At this first switch the black feed wire is connected to the common screw on the switch.
You connect the black wires in the electrical box to the switch terminals and the white wires to each other. This type of switch has two brass screws usually on the bottom and a copper or black screw on the top left. Connect all the whites together and shove them back in the box at the switch with the wire going to the light. Hooking up a switch is the essence of simplicity. On the other end the two white wires are wire nutted together.