Hide the <p> element when it is clicked on "slowly" - Javascript jQuery

Javascript examples for jQuery:Hide

Description

Hide the <p> element when it is clicked on "slowly"

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("p").click(function(){
        $(this).hide("slow");
    });/*from  w  ww.  java2 s  .co m*/
});
</script>
</head>
<body>

<p>If you click on me, I will disappear.</p>

</body>
</html>

Related Tutorials