Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

88
Views
Card drag and drop

I'm trying to move one item to next box, but the event dragover and dragenter wasn't detected. Can someone explain this?

let dropTarget = $('.box'),
  dropSource = $('.inner-box');

dropTarget.on('dropover dropenter', function(e) {
  e.preventDefault()
  console.log(1)
})
.box {
  width: 80px;
  height: 80px;
  border: 1px solid black;
}

.inner-box {
  width: 100%;
  height: 100%;
  background: red;
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<div class="box">
  <div class="inner-box" draggable="true"></div>
</div>
<div class="box"></div>
<div class="box"></div>

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!