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

173
Views
Why javascript does not find parentNode?
<ul>
        <li proto>{{tema}}
</ul>
(...)
<ul id=oktatok>
        <li proto="{{oktato}}" class="column center m3">{{oktato}}
            <div class="avatar"><img src="csaj.png"></div>
            <h6 >{{oktato}}</h6>
        </li>
</ul>

With the first UL-node JS see LI-element's parentNode, but with the second one does not. :(

I can not understand, why. Both are the same structure ( ul->li ), so it is weird. However if I call .parentNode in the browser's console, there I get for the second one too; but in the page' script not.

Thank you for any explanation or solution.

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!