Jump to content

Kingdom

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Kingdom

  • Rank
    Newbie
  • Birthday 10/18/1987

Previous Fields

  • Languages
    English, Portuguese, Spanish

Profile Information

  • Location
    Brazil, Santa Catarina
  1. Yep, that fixed it... Swapped .setAttribute("value","password") for .value... Thanks! Solved!
  2. Thanks, that's was just a typo on paste. Fixed! The value returned is indeed what i expect, empty, as i said on the first post. I've added an alert to detect if the script was being triggered, and it is, but the value of the input won't be updated after editing... Here's the new code with detect: function loginFormToggleFillers(element){ var loginF = document.loginForm.login; var user = loginF.value; var passwordF = document.loginForm.password; var password = passwordF.value; if(element){ el = element.attributes["name"].value; if( el == "login" ){ if ( user == "" || user.length ==
  3. The idea:The idea is to automatically fill the fields with "user@mail.com" and "password" if they're left blank. The problem:Well, the Javascript check is working and doing what it is supposed to. However, if the user adds a value, and then erases that value leaving the input empty, the script doesn't detects the field as empty... although the value returned is indeed empty like "". The code: function loginFormToggleFillers(element){ var loginF = document.loginForm.login; var user = loginF.value; var passwordF = document.loginForm.password; var password = passwordF.value; if(element){
×
×
  • Create New...