I have this piece of code
var $slider = $('#divSlider')
.hover(function () {
}, function () {
}).appendTo('div');
$('a').mouseover(function () {
$slider
.addClass('active')
});
I have the following questions:
- What is $slider?
- When does it appendTo div, does it happen after hovering or instantly?
- In the mouseover function, $slider is used again. What does $slider contain?
Thanks