How do I get rid of leg.cramps

I am having.cramps in back of legs