Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <html lang=en>
- <head>
- <title>Belajar Jquery dan Ajax</title>
- <style type="text/css">
- </style>
- </head>
- <body>
- <form action="#">
- <p>Name: <br /><input type="text" /></p>
- <p>Email: <br /><input type="text" /></p>
- <p><input id="newsletter_button" type="button" value="Sign up" /></p>
- </form>
- <script type="text/javascript" src="jquery.js"></script>
- <script type="text/javascript">
- $(':text').focusin(function(){
- $(this).css('background-color', 'yellow');
- });
- $(':text').blur(function(){
- $(this).css('background-color', '#fff');
- });
- $(':button').click(function(){
- $(this).attr('value', 'Mohon tunggu....');
- $(this).attr('disable', true);
- });
- </script>
- </body>
- <html>
Advertisement
Add Comment
Please, Sign In to add comment