Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
- <script>
- $(document).ready(function(){
- $("input").focus(function(){
- $("span").css("display", "inline").fadeOut(2000);
- });
- });
- </script>
- <style>
- span {
- display: none;
- }
- </style>
- </head>
- <body>
- <input>
- <span>Nice to meet you!</span>
- <p>Click in the input field to get focus.</p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement