<!DOCTYPE html>
<html>
<head>
<title>jQuery fadeToggle() method</title>
<script src="jquery-latest.min.js"></script>
<script>
$(document).ready(function() {
$("#fadetoggle").click(function(){
$("div").fadeToggle(3000);
});
});
</script>
<style type="text/css">
div {
background: #FC5E5E;
font-family: arial;
padding: 10px;
}
</style>
</head>
<body>
<button id="fadetoggle">Fade In/Out (3 Seconds)</button>
<br /><br />
<div>This element represent fade in and fade out effect.</div>
</body>
</html>