<html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> function pokaz(){ $("#test").show(); } </script> <div id="test" style="display: none;">asd</div> <a href="#none" mouseenter="pokaz();">x</a> </head>