Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <!--[if IE]>
- <script type="text/javascript">
- $(document).ready(function() {
- $('input[type="text"]').each(function() {
- $(this).val($(this).attr('placeholder'));
- });
- $('input[type="text"]').focus(function() {
- if($(this).val() == $(this).attr('placeholder')) {
- $(this).val("");
- }
- });
- $('input[type="text"]').blur(function() {
- if($(this).val() == '') {
- $(this).val($(this).attr('placeholder'));
- }
- });
- });
- </script>
- <![endif]-->
- </head>
- <body>
- <h1>Register</h1>
- <div class="alert alert-error"><a data-dismiss="alert" class="close">×</a><strong>Error!</strong> The First Name field is required.</div>
- <form class="form-horizontal" method="post" action="" enctype="multipart/form-data">
- <fieldset>
- <div class="control-group">
- <label for="first_name" class="control-label">First Name</label>
- <div class="controls">
- <input type="text" id="first_name" name="first_name" class="input-xlarge" value="">
- </div>
- </div>
- </fieldset>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement