I have a script that changes the background color of the div when a file is dragged over it, however I would like to change it so that the background image changes e.g.An image with the world 'Drop your file'
Here is the code I have to work with so far.
function dragover(e)
{
e.stopPropagation();
e.preventDefault();
f('.dropable').css({
backgroundColor : 'rgb(51, 51, 51)',
border : 0,
});
}
I have tried, but it didn't seem to work.
function dragover(e)
{
e.stopPropagation();
e.preventDefault();
f('.dropable').css({
backgroundColor : 'rgb(51, 51, 51)',
border : 0,
backgroundImage','url(uploadimg.png)
});
}