I am trying to use .bind()
with 'dragenter'
, 'dragover'
, and 'drop'
so I can drag a file from my desktop to my browser.
Please see attached jsfiddle. http://jsfiddle.net/v82An/23/
$(function(){
function dragenter(e) {
e.stopPropagation();
e.preventDefault();
}
function dragover(e) {
e.stopPropagation();
e.preventDefault();
}
function drop(e) {
e.stopPropagation();
e.preventDefault();
alert('hi')
}
$('#drop').bind('dragenter', dragenter, false);
$('#drop').bind('dragover', dragover, false);
$('#drop').bind('drop', drop, false);
});
This fiddle attaches these events properly in 1.5, but in 1.6 they simply don't work.
Anyone know if I'm just doing it wrong?