HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head> <body> <h1>jQuery mouseover() Method</h1> <p>Try to touch me.</p> <button>Trigger mouseover </button> <script> $(document).ready(function(){ $("p").mouseover(function(e){ alert("You are over the paragraph."); }); $("button").click(function(e){ $("p").mouseover(); }); }); </script> </body> </html>
OUTPUT
×

Save as Private