<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>toggle demo</title>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>
<body>
<button>Toggle</button>
<div>Hello</div>
<script>
$("button").click(function()
{
$("div").toggle();
});
</script>
</body>
</html>Here you will see a sample code for hide and show the div on single button click.
