[Tex/LaTex] Footnote in math mode

footnotesmath-mode

How can I insert a footnote into math mode? I tried this (with required packages)

\usepackage{amsmath}
\usepackage{hyperref}
\usepackage{ccaption}


And i.e if I try

\begin{eqnarray}
foo && foo \text{\footnote{something}}\\
foo && foo \mbox{\footnote{something else}}
\end{eqnarray}


the link to the footnote appears, but not in the footnote position and if I click it I'm redirected to the first page. If I am in text mode I don't have this problem.
How can I do this? Thanks in advance!

You shouldn't be using eqnarray, first of all, but rather align.
\begin{align}

While \footnote works in equation, it doesn't in other alignment environments.