$("#click").on("mouseenter", whenMouseEnter); $("#click").on("mouseleave", whenMouseLeaves); function whenMouseEnter() { $("#click").html("<h2>Inside Me</h2>"); } function whenMouseLeaves() { $("#click").html("<h2>Where you goin'?</h2>"); }
$("#click").on("mouseenter", whenMouseEnter); $("#click").on("mouseleave", whenMouseLeaves); function whenMouseEnter() { $("#click").html("<h2>Inside Me</h2>"); } function whenMouseLeaves() { $("#click").html("<h2>Where you goin'?</h2>"); }