Answers for "call function on div hover i jqery"

0

jquery hover function

$(document).ready(function() {
            $("p").hover(function() {
                $(this).css("background-color", "green");
            }, function() {
                $(this).css("background-color", "yellow");
            });
        });
Posted by: Guest on August-02-2021
1

jquery mouse hover method

$("#p1").hover(function(){

  alert("You entered p1!");

 },

 function(){

  alert("Bye! You now leave p1!");

});
Posted by: Guest on April-19-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language