<! DOCTYPE html>
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>
<title> Mobile Development Registration, login input common event (input Enter text trigger event) </title>
<meta name= "keywords" content= "points Mall, redemption, Spring festival season, free"/>
<meta name= "description" content= "Points spring redemption season, more owners travel value goods free redemption"/>
<meta http-equiv= "Content-language" content= "ZH-CN"/>
<meta http-equiv= "x-ua-compatible" content= "Ie=emulateie7"/>
<meta name= "Copyright" content= "This page is owned by Iicoo. All rights Reserved "/>
<meta name= "Author" content= "Iicoo"/>
<meta content= "yes" name= "apple-mobile-web-app-capable"/>
<meta content= "Width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name= "viewport"/>
<meta content= "black-translucent" name= "Apple-mobile-web-app-status-bar-style"/>
<meta content= "Telephone=no" name= "Format-detection"/>
<link rel= "stylesheet" href= "Http://wappass.baidu.com/static/touch/css/base_19c066f0.css"/>
<body>
<div id= "Pagewrapper" >
<a class= "Pass-header-back" id= "GoBack" ></a> <span class= "Pass-header-title" > <span class= "Pass _header_logo "> Login account </span> </span> <a class=" Pass-header-links "href=" # "> Registration </a>
<div class= "Mod-content" >
<form autocomplete= "Off" method= "POST" class= "Form-wrapper" id= "Login-formwrapper" >
<p class= "Error_area" id= "error" ></p>
<p class= "Form-item form-input-wrapper form-item-username" >
<label class= "Text-label text-label-username" for= "Login-username" id= "Login-label-username" > Account </label >
<input type= "text" name= "username" class= "text-input" maxlength= "placeholder=" Phone number/mailbox/username "value=" "id=" Login-username "> <span class=" Input-clearvalue "></span>
</p>
<p class= "Form-item form-input-wrapper" >
<label class= "Text-label text-label-password" for= "Login-password" id= "Login-label-password" > Password </label >
<input type= "password" name= "password" class= "Text-input" id= "Login-password" placeholder= "password" value= "" > < Span class= "Input-clearvalue" ></span> <span id= "Login-pwdtoggle" class= "Input-aide input-pwdtoggle" > </span>
</p>
<p class= "Form-item" > <span class= "form-input-wrapper" > <label class= "Text-label Text-label-verifycode "for=" Login-verifycode "> Verification Code </label> <input type=" text "name=" Verifycode "class=" Text-input "value=" "placeholder=" Verification Code "autocomplete=" Off "maxlength=" 6 "id=" Login-verifycode "> <span class=" Input-clearvalue "></span> </span>
<a class= "Change-verifycode" id= "Login-verifycodechange" ></a>
<input type= "hidden" id= "Login-vcodestr" name= "Vcodestr" value= "" >
</p>
<p class= "Form-item form-item-btn" >
<input type= "Submit" value= "Login" id= "Login-submit" class= "Pass-button-full pass-button-full-disabled" >
</p>
</form>
<p class= "M-lr14 F14 clearfix" > <a class= "Right" href= "#" > Forgot password? </a>
</p>
</div>
<div class= "Footer" ></div>
</div>
<script type= "Text/javascript" src= "http://baoxian.pingan.com/pa18shopnst/u/wx/product/airDelayNew/js/ zepto-1.1.4.build.min.js?t=20151124 "></script>
<script type= "Text/javascript" >
//
var $loginUsername = $ ("#login-username")
var $loginPassword = $ ("#login-password")
var $loginPwdToggle = $ ("#login-pwdtoggle");
$loginPwdToggle. Tap (function () {
$ (this). addclass ("Input-pwdtoggle-show");
Alert ("DD");
if ($loginPassword. attr ("type") = = = "Text") {
$loginPassword. attr ("type", "password");
$loginPwdToggle. Removeclass ("Input-pwdtoggle-show");
}else{
$loginPassword. attr ("type", "text");
$loginPwdToggle. addclass ("Input-pwdtoggle-show")
}
});
//
$loginUsername. On ("Input", function () {
$ (this). Siblings (". Input-clearvalue"). CSS ("Display", "block");
});
//
$loginPassword. On ("Input", function () {
$ (this). Siblings (". Input-clearvalue"). CSS ("Display", "block");
});
//
$ (". Input-clearvalue"). Tap (function () {
$ (this). Siblings ("input"). Val ("");
$ (this). CSS ("display", "none");
});
</script>
</body>
Mobile development Registration, login input common event (input Enter text trigger event)