Shut off the water to the toilet by turning the stop-valve. Flush the toilet to empty the tank.
Remove the chain assembly from the drain lever.
Loosen the handle using a wrench. Remove the handle and discard the existing lever.
Slide the new lever through the hole in the tank so the handle is back in its proper place. Slide the nut down the lever and tighten it. Do not over-tighten it or the toilet will be unable to flush.
Reattach the chain assembly to the new lever.
Turn on the water and wait for the tank to fill with water. Test the new handle and lever, ensuring it flushes the toilet as normal. If it is operating appropriately, the flapper will open, allowing the water to flush, and close again. If the flapper does not shut properly, you may need to adjust the length of the chain assembly.