Topic: sortable addEventListener
maestrocrm pro premium priority asked 2 years ago
Hi, I try to listen to the event ״move.mdb.sortable״ but it doesn't work for some reason I can change the item order in the html list but not listening to the event from javascript
Resources (screenshots, code snippets etc.) const sortableItem = document.getElementById('sortable-12'); const instanceSortable = new DragAndDrop.Sortable(sortableItem, { sorting: true }); sortableItem.addEventListener('move.mdb.sortable', (e) => { alert(e.target); });
kpienkowska staff answered 2 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 6.2.0
- Device: mac
- Browser: chrome
- OS: ios
- Provided sample code: No
- Provided link: No