jQuery dblclick() trigger fade event

Description

jQuery dblclick() trigger fade event

View in separate window

<!DOCTYPE html>
<html>
<head>
<script 
 src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js">
</script>/*  w  w w  .ja  va  2  s. c o  m*/
<script>
$(document).ready(function(){
  $("p").dblclick(function(){
    $(this).fadeOut();
  });
});
</script>
</head>
<body>

<p>Double-click this paragraph to make it disappear.</p>

</body>
</html>



PreviousNext

Related