<title>My Example</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
$(document).ready(function(){
$("#hideContent").click(function() {
$("#showContent").click(function() {
<button id="hideContent">Hide</button>
<button id="showContent">Show</button>