Water leaking into the tub

Water is dripping into the tub when the washer is turned off. It seems to be coming from under the lid. Can you tell me what part to replace and how to do it?