1<script>
2// We have to use hide function to hide the element as well.
3$(‘#hide_elem’).click(function(){
4 $(‘#elem’).hide();
5});
6 // This is the actual function which show how to call show function.
7 $(‘#show_elem’).click(function(){
8 $(‘#elem’).show();
9});
10
11</script>
12<div id=”hide_elem”></div>
13<div id=”show_elem”></div>
14<div id=”elem”></div>
15