javascript - Add class to HTML element when is dragged over another element in IE8 -
i need add class 1 element when dragged on element. in html5 http://jsfiddle.net/neaut
var draggeddiv = document.queryselector('.draggeddiv'); draggeddiv.draggable = true; var draggedover = document.queryselector('.draggedover'); draggedover.ondragover = function(){this.classname = 'red'}
but don't know how work in ie8.
Comments
Post a Comment