How to use jQuery .dblclick() to bound the click event handler to HTML <div> tag

1 Answer

0 votes
<!doctype html>
<html>
<head>
  <script src="js/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
 
<div id="id-div">
  Double click here
</div>
<script>
$("#id-div").dblclick(function() {
  alert("id-div");
});
</script>
</body>
</html>

 



answered Aug 19, 2016 by avibootz
...