jQuery Effects – Hide and Show
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#options").click(function(){
$("#optional").toggle();
});
});
</script>
</head>
<body>
<p id="options">Click here to show options</p>
<div id="optional" style="display:none;">
Toggle between hiding and showing the options.
</div>
</body>
</html>