I have seen many post about this but none of them bring me a solution;
I have implemented a drag and drop functionality in my site. When I drag above a valid container I add a class to it.
The html for the container;
<div id="boxL" class="boxL" ondrop="drop(event)" ondragover="allowDrop(event)" ondragleave="dragLeave(event)">
Now when ondragover event is triggered it calls for this JavaScript
function allowDrop(ev) {
ev.preventDefault();
var id = event.target.id;
$(document).ready(function(e){
$('#'+id).addClass('dotted');
});
}
And the css class;
.dotted{
border: 5px dotted #212121;
}
Its working in every browser but not for firefox!?
Any clues?