Remove a link - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:fadeOut

Description

Remove a link

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.10.1.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){/*from   ww  w  .j ava 2s.co m*/
    $("#userfile1").focus(function () {
        $('#errorDiv').fadeOut(2000);
    });
    });

      </script> 
 </head> 
 <body> 
  <input type="file" name="userfile1" id="userfile1" class="span5"> 
  <div id="errorDiv">
    Must Select Image To Upload 
  </div>  
 </body>
</html>

Related Tutorials