Washer leaking into tub

My washer is leaking from the top inlet into the tub slowly. I tried unplugging and plugging back in as suggested to reset and it did not solve the problem. I shut off hose valves and the dripping stop. What is the part number that I need for the water valve in the machine and how hard is it to repair. Thanks