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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -