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

263
Views
mensaje de error de javascript document.getElementsByClassName(...).getElementsByClassName no es una función

Tengo una página html que está estructurada de la siguiente manera:

 <html> <div class="container-xl"> <div class="row"> <div class "element_i_want_to_access"> ... </div> </div> </div> </html>

Me gustaría eliminar este elemento, por lo que mi enfoque fue el siguiente:

 parent_element= document.getElementsByClassName("container-xl").getElementsByClassName('row'); element = document.getElementsByClassName("element_i_want_to_access") parent_element.removeChild(element );

Sin embargo, cuando recupero el elemento principal, aparece el error document.getElementsByClassName(...).getElementsByClassName is not a function . ¿Hay alguna razón en particular para esto? ¿Cómo sería la sintaxis correcta?

about 4 years ago · Juan Pablo Isaza
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!