$("#dj1").mouseover(function () {
$("#dj1").fadeTo(400, 1);
});
$("#dj1").mouseleave(function () {
$("#dj1").fadeTo(400, 0.4);
});
$("#dj2").mouseover(function () {
$("#dj2").fadeTo(400, 1);
});
$("#dj2").mouseleave(function () {
$("#dj2").fadeTo(400, 0.4);
});
how can i write a function that will handle both divs instead of copying the same code for each instances of the div?
Thanks