Get checked. Swelling and pain in the ankles can be caused by multiple things such as diet, blood pressure, kidney function, circulation, nerves, injury, previous surgery...Basically many things. You need to see your primary doctor and jot down more info about when do you notice the swelling, does it every go down, when does it hurt, what is your diet, etc. Get checked.
Compression/elevate. Elevating legs may help. Compression therapy or elastic stocking are usually most helpful. See your physician for evaulation and treatment.