Time delay on element with fadeToggle() - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:fadeToggle

Description

Time delay on element with fadeToggle()

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <script type="text/javascript" src="https://code.jquery.com/jquery-1.9.1.js"></script> 
  <script type="text/javascript">
    $(function(){//from  w w  w . jav  a2  s  . c o m
  $("button").click(function(){
    $(".copy").show().fadeToggle(3000);
  });
    });

      </script> 
 </head> 
 <body> 
  <div class="copy" style="display:none;">
    copied!! 
  </div> 
  <button>Copy</button>  
 </body>
</html>

Related Tutorials