make a div fade out javascript code example
Example 1: jquery on click fade out element
$(document).ready(function(){
$("button").click(function(){
$("p").fadeOut();
});
});
Example 2: jquery fade out
$(selector).fadeOut(duration)
$(selector).fadeIn(duration)