\documentclass{article}
\usepackage{ocgx}
\begin{document}
\begin{ocg}{OCG 1}{ocg1}{1}
  first example.
\end{ocg}

\switchocg{ocg1}{Button.}
\end{document}