Pickle juice can stop leg cramps due to its high electrolyte content, especially sodium and potassium (Source). Alternatively, electrolyte-rich drinks like coconut water or sports drinks can also be effective (Source).