Handle drag leave enter - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:one

Description

Handle drag leave enter

Demo Code

ResultView the demo in separate window

<html lang="en">
   <head></head>
   <body translate="no"> 
      <div class="bodierClass">
         drap me//from  w  w  w  .  j  a va2 s .  c o  m
      </div> 
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script> 
      <script>
      $('.bodierClass').one("dragenter" ,function(ev) {
console.log("dragenter")
$('.bodierClass').one("mouseout", function() {
      console.log("dragleave")
});
});
    
      </script>  
   </body>
</html>

Related Tutorials