<!DOCTYPE html> <html> <head> <title>Try jQuery Online</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script> $(document).ready(function() { $(".dontDrag").hover(function(){ alert("hola mundo"); }); }); </script> </head> <body> <h1 class="dontDrag">HOLA GERA</h1> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more