Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- //Some php-code
- ?>
- <head>
- <script src="name.js" type="text/javascript"></script>
- <script>
- $(document).ready(function(){
- $('input[type="text"]').each(function(){
- $(this).focus(function(){
- $(this).css({'border':'1px solid red'});
- });
- $(this).blur(function(){
- $(this).css({'border':'1px solid green'});
- });
- });
- });
- </script>
- </head>
- <body>
- <input type="text" value="Bananas" />
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement