Advertisement
Guest User

Untitled

a guest
Nov 15th, 2012
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.41 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4.     <!--[if IE]>
  5.         <script type="text/javascript">
  6.             $(document).ready(function() {
  7.                 $('input[type="text"]').each(function() {
  8.                     $(this).val($(this).attr('placeholder'));
  9.                });
  10.                
  11.                $('input[type="text"]').focus(function() {
  12.                     if($(this).val() == $(this).attr('placeholder')) {
  13.                         $(this).val("");
  14.                    }
  15.                });
  16.                
  17.                $('input[type="text"]').blur(function() {
  18.                     if($(this).val() == '') {
  19.                         $(this).val($(this).attr('placeholder'));
  20.                    }
  21.                });
  22.            });
  23.        </script>
  24.    <![endif]-->
  25. </head>
  26. <body>
  27.                 <h1>Register</h1>
  28.  
  29. <div class="alert alert-error"><a data-dismiss="alert" class="close">&times;</a><strong>Error!</strong> The First Name field is required.</div>
  30.  
  31. <form class="form-horizontal" method="post" action="" enctype="multipart/form-data">
  32.     <fieldset>
  33.      
  34.        
  35.         <div class="control-group">
  36.             <label for="first_name" class="control-label">First Name</label>
  37.             <div class="controls">
  38.                 <input type="text" id="first_name" name="first_name" class="input-xlarge" value="">
  39.             </div>
  40.         </div>
  41.     </fieldset>
  42. </form>
  43. </body>
  44. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement