Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form name="form" id="loginform" class="lm-login-form" method="post" action="./?_task=login">
- <div id="userid" class="lm-login-item">
- <div class="lm-login-label">
- <label for="rcmloginuser"><roundcube:label name="mail" /></label>
- </div>
- <div class="lm-login-field">
- <input name="_user" id="rcmloginuser">
- </div>
- </div>
- <div id="pwdid" class="lm-login-item">
- <div class="lm-login-label">
- <label for="rcmloginpwd"><roundcube:label name="password" /></label>
- </div>
- <div class="lm-login-field">
- <input name="_pass" id="rcmloginpwd" type="password">
- <a href="#" id="showpass">Exibir</a>
- </div>
- </div>
- <p class="formbuttons">
- <input type="submit" id="submitloginform" class="lm-login-submit" value="Entrar">
- </p>
- </form>
- $(document).ready(function() {
- $( '#loginform' ).validate({
- rules: {
- _user: {
- required: true,
- email: true
- },
- _pass: {
- required: true
- }
- },
- });
- });
- $(document).ready(function(){
- checkInput = setInterval(function(){
- var autoCompleted = false;
- $("#loginform input").each(function(input){
- input = $("#loginform input").eq(input);
- if($(input).val()){
- $(input).val($(input).val());
- $(input).change();
- autoCompleted = true;
- }
- if(autoCompleted){
- clearInterval(checkInput);
- }
- })
- }, 10);
- $("#loginform input").focus(function(){
- $(this).change();
- $(this).val($(this).val());
- });
- $( '#loginform' ).validate({
- rules: {
- _user: {
- required: true,
- email: true
- },
- _pass: {
- required: true
- }
- },
- });
- })
Add Comment
Please, Sign In to add comment