Hey, does anyone know how to use Jquery to add a class when an element is being dragged over a drop area?
Here's the HTML code I'm working with:
<div class="upload">
<form action="">
<input class="uploadfile" type="file" id="imageLoader" name="imageLoader">
<div class="circle"><i class="flaticon-arrows-1"></i></div>
<div class="text">Drag and Drop or browse from your computer</div>
</form>
</div>
I would like to add a class to the upload div so it looks like this:
<div class="upload dragging"></div>