Javascript examples for jQuery Method and Property:fadeOut
div displayed and fade
<html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <style> div {/* w ww. j a v a 2 s .c o m*/ height: 100px; width: 100px; background-color: #FA6900; border-radius: 5px; } </style> </head> <body> <div id="someID"></div> <script> $(document).ready(function() { $('#someID').click(function() { $('#someID').fadeOut('slow'); }); }); </script> </body> </html>