on click fade out jquery

JavaScript
$(document).ready(function(){
  $("button").click(function(){
    $("p").fadeOut(2500);
  });
});
Source

Also in JavaScript: