<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#hed").click(function(){
$("#para").slideToggle("slow");
});
});
</script>
<style>
#para, #hed{
padding: 5px;
text-align: center;
background-color: #e5eecc;
border: solid 1px #c3c3c3;
}
#para{
padding: 50px;
display: none;
}
</style>
</head>
<body>
<div id="hed">c# corner</div>
<div id="para">c-sharpcorner.com</div>
</body>
</html>In this code snippet you will learn how to use slideToggle() Method in jQuery
