on mouse over in jquery 1

on mouse over in jquery

$(".selector").on("mouseover", function () {
    //stuff to do on mouseover
});

Here is what the above code is Doing:
1. Select all elements with the class selector.
2. Add a mouseover event handler to each element.
3. When the mouseover event is triggered, run the code inside the function.

Similar Posts