div displayed and fade - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:fadeOut

Description

div displayed and fade

Demo Code

ResultView the demo in separate window


<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>

Related Tutorials