Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

149
Views
Sigue recibiendo un error de tipo no detectado: no se pueden leer las propiedades de un error indefinido (leyendo 'estilo') es JS

Intentando cambiar de un formulario de inicio de sesión a un formulario de registro. Sigue recibiendo un error de Javascript:

Error de tipo no detectado: no se pueden leer las propiedades de undefined (leyendo 'estilo')

No estoy seguro de qué más mirar de acuerdo con este error. Probé JS como un archivo .js, el mismo problema.

Código:

 <div class="col-2"> <div class="form-container"> <div class="form-btn"> <span onclick="login()"> Login </span> <span onclick="register()">Register</span> <hr id="Indicator"> </div> <form id="LoginForm"> <input type="text" placeholder="Username"> <input type="password" placeholder="Password"> <button type="submit" class="btn">Login</button> <a href="">Forgot Password</a> </form> <form id="RegForm"> <input type="text" placeholder="Username"> <input type="email" placeholder="Email"> <input type="password" placeholder="Password"> <button type="submit" `enter code class="btn">Register</button> </form> <script> var LoginForm = document.getElementbyID("LoginForm"); var RegForm = document.getElementbyID("RegForm"); var Indicator = document.getElementById("Indicator"); function register() { LoginForm.style.transform = "translateX(0px)"; RegForm.style.transform = "translateX(0px)"; Indicator.style.transform = "translateX(100px)"; } function login() { LoginForm.style.transform = "translateX(300px)"; RegForm.style.transform = "translateX(300px)"; Indicator.style.transform = "translateX(0px)"; } </script>

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

var LoginForm = document.getElementbyID("LoginForm"); var RegForm = document.getElementbyID("RegForm"); var Indicator = document.getElementById("Indicator");

hay errores tipográficos en su selector. debería ser

 document.getElementById(id);
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!