Alguien sabe como puedo hacerlo ?
He visto en la pagina https://signup.leagueoflegends.com/es/signup/index que si pero no utiliza ninguna secuencia de las que utilizo yo. serán scrips avanzados, podeis hacer la prueva
Código Javascript
:
Ver original<script type="text/javascript" charset="utf-8">
var validationRules = {"PvpnetAccountName":[{"rule":"\/.+\/"
,"message":"Este campo es obligatorio"}
,{"rule":["between",4,24]
,"message":"Ha de contener entre 4 y 24 caracteres de longitud"}
,{"rule":["custom","\/^[a-z0-9]+$\/i"]
,"message":"S\u00f3lo puede contener letras y n\u00fameros"}
,{"rule":"nameAvailable"
,"message":"El nombre de usuario ya est\u00e1 en uso"}]
,"PvpnetAccountPassword":[{"rule":"\/.+\/"
,"message":"Este campo es obligatorio"}
,{"rule":["between",6,16]
,"message":"Ha de contener entre 6 y 16 caracteres de longitud"}
,{"rule":["custom","\/(\\d[a-z]|[a-z]\\d)\/i"]
,"message":"Debe contener al menos una letra y un n\u00famero"}
,{"rule":["custom","\/^[^\\\/\\s\\\\]+$\/"]
,"message":"No debe contener barras o espacios"}
,{"rule":["matches","confirm_password"]
,"message":"Las contrase\u00f1as deben coincidir"}]
,"PvpnetAccountDateOfBirthYear":[{"rule":"\/.+\/"
,"message":"Year field is required"}
,{"rule":"\/\\d{4}$\/"
,"message":"Four Digit year(Numbers Only)"}]
,"PvpnetAccountDateOfBirthDay":[{"rule":"\/.+\/"
,"message":"Day field is required"}
,{"rule":["numericalBetween",1,31]
,"message":"Day range 1 - 31(Numbers Only)"}]
,"PvpnetAccountDateOfBirthMonth":[{"rule":"\/.+\/"
,"message":"Month field is required"}
,{"rule":["numericalBetween",1,12]
,"message":"Month range 1 - 12(Numbers Only)"}]
,"PvpnetAccountEmailAddress":[{"rule":"\/.+\/"
,"message":"Este campo es obligatorio"}
,{"rule":["maxLength",100]
,"message":"Debe contener como m\u00e1ximo 100 caracteres"}
,{"rule":"email"
,"message":"Debe ser una direcci\u00f3n v\u00e1lida de correo electr\u00f3nico"}
,{"rule":"emailAvailable"
,"message":"Email already in use"}]
,"PvpnetAccountTouAgree":[{"rule":"checked"
,"message":"Este campo es obligatorio"}]
,"PvpnetAccountRealm":[{"rule":"\/.+\/"
,"message":"Este campo es obligatorio"}]
,"PvpnetAccountCaptcha":[{"rule":"captcha"
,"message":"El texto debe coincidir con la imagen"}]};
var localizedText = {
'Loading...': "Cargando...",
'change': "cambiar" }
</script>
Solo quiero un equalTO en español xD.