- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to stop dragend's default behavior in drag and drop?
To stop dragend’s default behavior, you need to detect if the mouse is over the drop target where you want to drop.
This is what you should do only if you are hovering over my list − listContainer.insertBefore(source, myNode);
Use jQuery −
if ($(mylist).parent().find(":hover")) { listContainer.insertBefore(source, myNode); }
Advertisements
To Continue Learning Please Login
Login with Google