Javascript examples for jQuery Method and Property:fadeToggle
Time delay on element with fadeToggle()
<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>