I want add a event handler to drop event, my first try is to use jquery 1.9.1
var dropIt = function (e) {
console.log(e);
console.log(e.dataTransfer);
e.stopPropagation();
e.preventDefault();
}
$('#drop-area').on('drop',dropIt);
but this can't print the e.dataTransfer, when I use the origin:
$('#drop-area')[0].addEventListener('drop', dropIt, false);
it can work?
why this happen?