HTML5 New Tags

Source: Internet
Author: User

<div class= "Wrap" >
<form class= "main form-horizontal" action= "main/active" onsubmit= "return check ();" >
<fieldset>
<legend> Change Password </legend>

<div class= "Control-group" >
<label class= "Control-label" > Username </label>
<div class= "Controls" >
<input id= "UserName" name= "pwd" type= "password" placeholder= "" class= "Input-xlarge"
Required onchange= "checkpasswords ()" >
</div>
</div>

<div class= "Control-group" >
<label class= "Control-label" > Old password </label>
<div class= "Controls" >
<input id= "oldpwd" name= "pwd" type= "password" placeholder= "" class= "Input-xlarge"
Required onchange= "checkpasswords ()" >
</div>
</div>

<div class= "Control-group" >
<label class= "Control-label" > New password </label>
<div class= "Controls" >
<input id= "newpwd" name= "pwd1" type= "password" placeholder= "" class= "Input-xlarge"
Required onchange= "checkpasswords ()" >
</div>
</div>

<div class= "Control-group" >
<label class= "Control-label" > Confirm password </label>
<div class= "Controls" >
<input id= "fnlpwd" name= "pwd1" type= "password" placeholder= "" class= "Input-xlarge"
Required onchange= "checkpasswords ()" >
</div>
</div>

<div class= "Control-group" >
<label class= "Control-label" >
</label>
<div class= "Controls" >
<button type= "Submit" id= "Submit-set" class= "btn Btn-default" > Submit </button>
<button class= "BTN" type= "reset" > Reset </button>
</div>
</div>
</fieldset>
</form>
</div>


<style>
HTML, Body
{
height:100%;
width:100%;
margin:0;
padding:0;
}
. form-horizontal. Control-group
{
margin-bottom:16px;
}
. Wrap
{
height:100%;
Display:-webkit-box;
-webkit-box-align:center;
-webkit-box-pack:center;
Overflow:auto;
}
. Main
{
width:600px;
}
. info
{
margin-bottom:20px;
font-size:21px;
line-height:40px;
Color: #333;
border:0;
border-bottom:1px solid #e5e5e5;
}
</style>

<script>
        function Checkpasswords () {
             var Passl = document.getElementById ("Fnlpwd");
            var pass2 = document.getElementById ("Newpwd ");
            if (passl.value! = pass2.value)
                 passl.setcustomvalidity (" Two times passwords must be entered consistently! ");
            Else
                 passl.setcustomvalidity (');
       }

function Check () {
document.getElementById ("Submit-set"). Disabled = ' disabled ';
}
</script>



HTML5 New Tags

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.