<!DOCTYPE html>
<html>
<head>
<title>jQuery toggle() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("#toggle").click(function () {
$("p").toggle();
});
});
</script>
</head>
<body>
<button id="toggle">Hide/Show</button>
<p style="background-color:#99FFFF;font-size:16px;font-family:Verdana;">Paragraph will hide after click</p>
</body>
</html>